Service binding RPC method null
I have a project with a service binding I call like this:
Despite the service being bound correctly, I ge this in production:
Logging this
Gives
I can rewrite it using
fetch
, but are these supposed to work?4 Replies
Although I will say, I was passing an object with array buffers in it and rewriting that with fetch is a bit annoying
I'm able to confirm that
fetch
does work too, it's just the RPC methods that won'tHi. Check what is your compatibility date on both workers?
must be at least 2024-04-03 on both workers
Also your RPC worker class must extend WorkerEntrypoint
@dschewchenko thank you so much, it was the compatibility date! It was too old! I'm very happy not to have to rewrite with fetch thanks again
Welcome! Have a nice day :bibicat: