joshtwist
CDCloudflare Developers
•Created by joshtwist on 10/19/2023 in #workers-help
WebSockets - what happens when worker is upgraded
When we upgrade our Worker - does CloudFlare terminate active sockets? We think we're seeing behavior where an old version of a worker is around for some time with a live socket - probably with multiple open sockets.
Is this expected behavior?
3 replies
CDCloudflare Developers
•Created by joshtwist on 3/7/2023 in #workers-help
How to read FormData entry in CloudFlare?
CloudFlare Workers do not support the
Blob
or FileReader
type. How can I read the 'body' of a multipart/form-data post ?
17 replies
CDCloudflare Developers
•Created by joshtwist on 1/19/2023 in #workers-help
Promise will never complete
We're seeing an error
Promise will never complete
in logs but cannot locate the code and am not sure what can cause it.
I saw this comment in a conversation with @kenton https://discord.com/channels/595317990191398933/773219443911819284/868646357425086585
But still cannot recreate this error.
A simple return await new Promise(() => {})
yields the eponomous The script will never generate a response
(https://zuplo.com/blog/the-script-will-never-generate-a-response-on-cloudflare-workers/) error. Which seems distinct.
Any ideas what could cause this?5 replies