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

17 Replies
Do you happen to have smart placement enabled on that worker?
yes
yeah that's my guess, could you try disabling and check again?
this right?

indeed, could you set that to default
DM your venmo.
happy to help :meowparty:
I've run into this myself two weeks ago, it was a nightmare to debug
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
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
got it. i enabled it so long ago i thought it was already GA
yeah i found your past messages now, sorry I missed them earlier 😅
did you do a gradual deployment?
Or just used Smart Placement + WS?
i think i did have it enabled. and probably still do
but each time i looked, it would be at 100% deployed.
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
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.
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 🤦♂️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