Http2.Request is not a function
Is Http2 not supported in the workers runtime? I'm not familiar with http2 - this is coming from a library I'm using.
6 Replies
What is the full error? I believe workers only supports
node-fetch
which is HTTP/1.1Nothing much more helpful:
Yeah not sure what that means seems like the http2.request is being used wrong
It's coming from a popular library
ably
that is not supporting ESM or the Cloudflare Worker environment. I've been using parts of it successfuly in Cloudflare Workers, but I just started using a new API and it's giving them this error. Not 100% surprising.Just googled it and are you using the web-worker bundle? Looking at old issues it seems that is the recommened one for Workers
I tried that and it seems to only work in a browser. Complains about
window
not being found.
I'm just going to try using the REST api