cryostatio / cryostat-web

Web front-end for Cryostat: Secure JDK Flight Recorder management for containerized JVMs
https://cryostat.io/
Other
10 stars 20 forks source link

[Bug] surge.sh preview has WebSocket error #1271

Closed andrewazores closed 1 month ago

andrewazores commented 1 month ago

Current Behavior

When running the mirage preview locally with yarn start:dev:preview the preview works as expected.

However, when the preview is built and published by CI, the web-client has a WebSocket error at launch and this causes it to fail to update its target list.

Expected Behavior

The surge.sh deployment should work the same as the local preview.

Steps To Reproduce

Run yarn start:dev:preview and check behaviour.

Compare against http://cryostatio-cryostat-web-cryostat-v30.surge.sh/ and http://cryostatio-cryostat-web-main.surge.sh/

Environment

No response

Anything else?

image

andrewazores commented 1 month ago

Possibly related to https://github.com/cryostatio/cryostat-web/pull/1207

andrewazores commented 1 month ago

Since #1276 the WebSocket error still appears but it doesn't block anything in the UI from loading, ex. the target selector list is populated, so this doesn't seem like a significant blocking issue.

andrewazores commented 1 month ago

The preview actually has other issues with various API requests supposedly not being stubbed out and failing. For example, Recordings > Create fails.

andrewazores commented 1 month ago

image