You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Description
HTTP(S) POST requests to
/api/contents/
that do not contain a request body currently result in an internal error:That error is thrown here:
jupyter_server/jupyter_server/services/contents/handlers.py
Lines 209 to 210 in 19c716b
The cause seems to be the following commit.
877da10#diff-36003c76c2fc08fa5e2f459696216cd66b2edd6d0bf3aff952d7555f4adbc8d9R210-R219
This is a regression from previous versions, as the previous code allowed creating a file without a request body.
To workaround, I have started passing a request body with
{"type": "notebook"}
.Expected behavior
The request should cause a file to be created, and should respond with a 2xx status code.
Context
Using a custom client during automated tests to verify that the API allows creating a file.
The text was updated successfully, but these errors were encountered: