eclipse-theia / theia-blueprint

The Eclipse IDE is a modern and open IDE for cloud and desktop. The Theia IDE is based on the Theia platform. The Theia IDE is available as a downloadable desktop application. You can also try the latest version of the Theia IDE online. For more details, see the Readme below.
https://theia-ide.org/#theiaide
MIT License
335 stars 125 forks source link

Webviews are not shown when running the browser app in the cloud #364

Open chroberino opened 3 months ago

chroberino commented 3 months ago

Bug Description:

I am running a browser app of Theia blueprint in Google Cloud (see "Additional Information" section below for more details). Webview contents are not rendered here, instead I can see the only messages like:

Hmm. We’re having trouble finding that site.
We can’t connect to the server at 4abb51cd-e31c-5697-9c6e-2c7bc6783e68.webview.mydomain.tld

image

(As always, of course, it did work perfectly when running the browser app on my localhost.)

Steps to Reproduce:

  1. Build browser app using an unmodified browser.Dockerfile and deploy output artefacts to cloud hosting
  2. Open URL of cloud-hosted Theia browser app
  3. Install "Jira and Bitbucket (Atlassian Labs)" extension (atlassian.atlascode)
  4. Open command palette and pick "Atlassian: Open Welcome Page" image

Additional Information

jfaltermeier commented 3 months ago

Hi, by default Theia exposes the webviews on a subdomain like this webview-id.webview.your-theia-domain. I think you have to make sure that these kinds of subdomains are also exposed in your kubernetes ingress resource