myndzi
myndzi
CDCloudflare Developers
Created by myndzi on 2/14/2024 in #general-help
WebSocket disconnections (code 1006) with origin rule WS proxy
I have a game that's proxying somewhat long-lived websockets through cloudflare for blue/green switching. However, some users are reporting frequent disconnects. The error code is 1006, which in a websocket just means the tcp connection was closed unexpectedly. Is there a way to gather more information from the Cloudflare end of things? It does not appear to be a timeout (it happens while the users are active, and I can idle with the game client and not get disconnected). Is there some kind of limit on frequency or amount of data transferred? How can I tell where exactly the connection is getting dropped and why?
1 replies
CDCloudflare Developers
Created by myndzi on 2/1/2024 in #general-help
List Zone Rulesets / authentication error
I'm having trouble getting the zone/ruleset/rule ids to make an API call. I have an origin rule I'll be modifying with curl. I have an API token that includes: Origin Rules:Edit, Origin Rules:Read applied to two zones (one in my account, one in someone else's account) Using: curl -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/rulesets" I'm getting code 10000 / "Authentication error". i got the zone ID from the dashboard. what permission do i need to access this endpoint? I can't seem to tell from the docs, let alone what to look for in the dashboard ui to grant it
2 replies
CDCloudflare Developers
Created by myndzi on 1/21/2024 in #general-help
Proxied websocket limits?
I see that Cloudflare can proxy WebSockets for a domain. I'm hoping to use it to enact blue-green switchover for a small game mod, but I'm having trouble understanding if this is acceptable use and/or if there are any limits on the free tier as far as bandwidth usage goes. (Bandwidth is currently about 200kb/s peak at most times, but about twice a month could get up to about 20 Mb/s). Is this a legiitmate use of the service?
8 replies