Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct content-type headers #965

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

epignot
Copy link
Contributor

@epignot epignot commented Sep 6, 2022

GatewayKernelManager does not send the correct Content-Type header when issuing POST requests for kernel creation.

This was initially fixed in PR : #471
But got reverted when gateway manager was refactored, in this commit : 062b5f4

@welcome
Copy link

welcome bot commented Sep 6, 2022

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Gateway client should set content-type to application/json when issuing
POST requests with json-encoded body
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@blink1073 blink1073 merged commit 15310fd into jupyter-server:main Sep 6, 2022
@welcome
Copy link

welcome bot commented Sep 6, 2022

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@kevin-bates
Copy link
Member

@epignot - I apologize for the dropped change - thank you for resubmitting! @blink1073 - thank you for the approval and merge!

epignot pushed a commit to epignot/jupyter_server that referenced this pull request Sep 7, 2022
epignot pushed a commit to epignot/jupyter_server that referenced this pull request Sep 7, 2022
@epignot
Copy link
Contributor Author

epignot commented Sep 7, 2022

No worries @kevin-bates !

Thank you @blink1073 ! I submitted #966 to backport this to 1.x branch

blink1073 pushed a commit that referenced this pull request Sep 7, 2022
epignot pushed a commit to epignot/help that referenced this pull request Jul 28, 2023
This workaround is no longer needed since this fix:
jupyter-server/jupyter_server#965
elinornetapp pushed a commit to spotinst/help that referenced this pull request Aug 24, 2023
* remove old workaround for jupyterlab

This workaround is no longer needed since this fix:
jupyter-server/jupyter_server#965

* add workaround for JupyterLab v4+

JupyterLab v4 and Notebook v7 use a new ws subprotocol our backend
doesn't support yet.
`GatewayWebSocketConnection.kernel_ws_protocol` option forces to use the
legacy websocket subprotocol

* update VSCode extension doc

The VSCode extension layout changed a bit, so I added an updated image
and updated the connection process.

I also fixed some troubleshooting tips

---------

Co-authored-by: Emmanuel Pignot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants