-
Notifications
You must be signed in to change notification settings - Fork 149
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
Inconsistent HTTP status codes #163
Comments
Theia can have VS Code extensions installed which are not available on the open vsx (yet). In this case the extension widget try to check metadata there anyway. |
Is there no way to suppress those errors? Would it help to check the existence with a HEAD or OPTIONS request first? Or should we have an explicit endpoint to check the existence of an extension? We could also try whether the behavior is the same if we return the same JSON data with error message, but with a 404 status. How do others handle such situations? |
This is actually a very controversial issue: There is a "Hide network" checkbox in the Chrome Console settings (gear icon in the top right of the console). @akosyakov that is not a satisfying solution, right? It hides all network request errors. I'd propose to add another endpoint |
The registry API is documented in https://open-vsx.org/swagger-ui/.
Currently the server returns status 200 and a JSON object
{ "error": "..." }
for most occurring errors. This is inconsistent with HTTP standards and will likely cause problems when trying to interact with our API from other services.The motivation for the current behavior was to avoid errors logged by the browser when fetching data from the registry (#23). @akosyakov do you remember in what context you experienced that?
The text was updated successfully, but these errors were encountered: