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
{{ message }}
Repository navigation
Add error metadata to index.html to forward backend errors #1907
When the browser accesses the API for authentication redirection or accessing apps, displaying a JSON error isn't useful! In these circumstances, we should serve index.html with an injected error and status code to display.
An example of this is accessing a web app, where it may be offline. This results in a 502 error right now, which isn't helpful to the user. We could send the following to the frontend instead:
<metaid="api-response" data-statuscode="404" data-message="code-server isn't running! Make sure it's active on 'localhost:3000'." />
This is injected dynamically using a string replace by our static server in Go. The frontend could register on a per-path basis to display really friendly errors, but for now we could do a catch-all by making our 404 page check if data-statuscode is set. If so, we'll display the error!
Activity
feat: Add links to the resource card for workspace applications
feat: Add links to the resource card for workspace applications (#2067)