How do i debug a websocket connection to DO websockets?

Im getting this error after the recent API outage. Im not sure what can be causing it. The websocket just isn't connecting. wss:dev.api.mage.stream
No description
17 Replies
DaniFoldi
DaniFoldi8mo ago
Do you happen to have smart placement enabled on that worker?
Gagan Suie
Gagan SuieOP8mo ago
yes
DaniFoldi
DaniFoldi8mo ago
yeah that's my guess, could you try disabling and check again?
Gagan Suie
Gagan SuieOP8mo ago
this right?
No description
DaniFoldi
DaniFoldi8mo ago
indeed, could you set that to default
Gagan Suie
Gagan SuieOP8mo ago
DM your venmo.
DaniFoldi
DaniFoldi8mo ago
happy to help :meowparty: I've run into this myself two weeks ago, it was a nightmare to debug
Gagan Suie
Gagan SuieOP8mo ago
ive been suffering for 3 days (dev and prod are down). 5 support tickets, 3 convos left unread in discord, and spent countless hours in the night. thank you so much
DaniFoldi
DaniFoldi8mo ago
ugh, yeah took me about 3 days to find out it was just smart placement being fun I recommend keeping it disabled until it's GA - it's caused a number of other issues in the past especially with pages
Gagan Suie
Gagan SuieOP8mo ago
got it. i enabled it so long ago i thought it was already GA
DaniFoldi
DaniFoldi8mo ago
yeah i found your past messages now, sorry I missed them earlier 😅
Walshy
Walshy8mo ago
did you do a gradual deployment? Or just used Smart Placement + WS?
Gagan Suie
Gagan SuieOP8mo ago
i think i did have it enabled. and probably still do but each time i looked, it would be at 100% deployed.
Walshy
Walshy8mo ago
Yeah we're digging into it internally, I'm pretty confident we can rule out grad deployment as the issue. Seems specific to smart placement + DO Relaying the info I have to that team and will track their issue for it
Gagan Suie
Gagan SuieOP8mo ago
gnarly. i hope this thread helps someone else if they run into similar issues. I closed my 5 tickets and let Cloudflare support know as well.
Bogdacutu
Bogdacutu8mo ago
not the same issue as here, but I've spent the past few hours trying to figure out why I was getting TypeError: The RPC receiver does not implement the method "hello". at runtime whenever trying to use RPC with Durable Objects. works perfectly after disabling smart placement 🤦‍♂️
hmnd
hmnd8mo ago
Holy crap I was trying to debug this all day yesterday and only found this thread through this discord being indexed by https://www.answeroverflow.com/m/1227649709011894312 🤦‍♂️ I'll maybe put in a PR to the docs to mention this issue until it can be fixed.
How do i debug a websocket connection to DO websockets? - Cloudflar...
Im getting this error after the recent API outage. Im not sure what can be causing it. The websocket just isn't connecting. wss:dev.api.mage.stream
Want results from more Discord servers?
Add your server