Issue with Workspace URL from Theia Cloud Launch — 503 on Initial Load #423
Replies: 1 comment
-
|
Hm, I haven't seen this before. So getting a 503 is a bit strange, but as you mentioned, you're getting a 200 with fetch, and a 503 in the browser, so it might be the same cause. In our usual demo application, we start Theia like this: In Theia Cloud, we do not know too much about the application being started, so we rely on HTTP status codes as a simple readiness check. One thing you could try is adding a Docker As far as I can see, the Theia Node application exposes a /ready endpoint, e.g. with the Try Now Demo at: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
We’re currently using the @eclipse-theiacloud/common package to programmatically launch workspaces and retrieve their URLs. Our setup looks like this:
This function is triggered on a "Load" button click.
The issue we’re facing is that while TheiaCloud.launch() successfully returns a URL, navigating to it immediately results in a 503 Service Unavailable error. The workspace becomes accessible only after manually refreshing the browser a few times.
What we’ve tried:
Initially, we relied on the returned URL from launch() and redirected right away.
To handle the 503 issue, we added a fetch() call in our code to check if the URL returns an HTTP 200 before proceeding. It does return 200 — even while the browser still shows 503.
This indicates that the endpoint might be technically "up" but not fully ready for browser-based interaction — possibly the IDE is not yet initialized or fully responsive.
The question:
Is there a readiness check mechanism provided by Theia Cloud to determine when a workspace is actually ready for browser use beyond just the HTTP 200 status?
If not, what would be the recommended approach to handle this delay more reliably and ensure users don’t hit a 503 or have to refresh repeatedly?
Any insights, documentation pointers, or recommended patterns would be greatly appreciated.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions