nens / 3di_starterkit

Example of how to use the 3di API and websockets
MIT License
0 stars 0 forks source link

Websocket connection to <> failed #4

Open Derryrover opened 2 years ago

Derryrover commented 2 years ago

image

Yung forward me the email of 3Di starterkit and let me do some tests. I follow the instruction on https://github.com/nens/3di_starterkit but I got an error message when I want to get the waterdepth image.

Do you know what might be the reason and how to fix it?

Derryrover commented 2 years ago

Hi Wei,

What you might check in advance of the meeting: Is the simulation Id correct? Is the simulation with this id actually still working on the 3di-live-site? can you in the browser "network" tab maybe get a more detailed explaination of the error?

Derryrover commented 2 years ago

Thanks for your quick reply, the meeting suits my time.

I tested again as the screenshot below,

The simulation was running when I tried to connect to water depth image. the network tab shows a provisional-headers warning with the following links: https://developer.chrome.com/docs/devtools/network/reference/?utm_source=devtools#provisional-headers

Derryrover commented 2 years ago

I have exactly the same problem when testing the starterkit. (previously starterkit worked without this problem.

Did anything change on 3di backend?

Derryrover commented 2 years ago

Firefox has same error: But it saya "acces denied" 403

GETwss://api.staging.3di.live/v3.0/simulations/12802/?initial_events=true&visualization=true[HTTP/1.1 403 Access denied 223ms]

   
GET wss://api.staging.3di.live/v3.0/simulations/12802/?initial_events=true&visualization=true

Firefox can’t establish a connection to the server at wss://api.staging.3di.live/v3.0/simulations/12802/?initial_events=true&visualization=true. dev.staging.3di.live:3000:39:26

Derryrover commented 2 years ago

Maybe a auth cookie specific bug? -> Yes tested and verified with Wei and now it works

Done: update starterkit readme with this info. https://github.com/nens/3di_starterkit/commit/b2004cac00c41c93bef5d430f75ca7446e402e77

See Proxy on Chrome browser in readme 3di livesite: https://github.com/nens/threedi-live-site

Derryrover commented 2 years ago

Spend 4 hours, 0.5 points