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
When a formatter is unavailable, POST /format fails with 404 here, but the error isn't shown to the user, instead it shows this:
Reproduce
add a nonexistent formatter, e.g. "asdf" in jupyterlab settings
invoke formatter
see error
Expected behavior
I'd expect the error message to be shown, which would help point the way to what's wrong in my configuration.
Presumably need to handle the error format here.
On the server side, I'd recommend sending a JSON error response, rather than a plain-text one. That should be easier for clients to handle consistently.
Context
jupyterlab 4.2.4
jupyterlab_code_formatter 3.0.2
The text was updated successfully, but these errors were encountered:
Description
When a formatter is unavailable,
POST /format
fails with 404 here, but the error isn't shown to the user, instead it shows this:Reproduce
Expected behavior
I'd expect the error message to be shown, which would help point the way to what's wrong in my configuration.
Presumably need to handle the error format here.
On the server side, I'd recommend sending a JSON error response, rather than a plain-text one. That should be easier for clients to handle consistently.
Context
The text was updated successfully, but these errors were encountered: