cloudflare / cloudflare/workerd
🐛 Bug Report — WARNING: Tried to access method or property 'ping' on a Service Binding or Durable Object stub. Are you trying to use RPC?
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
When I deploy the program online, RPC works smoothly, but during local development, although I can see `AUTH_SERVICE: ProxyStub { name: 'Fetcher', poisoned: false }`, calling it throws an exception.
```
...
TypeError: env.AUTH_SERVICE.ping is not a functio
...
WARNING: Tried to access method or property 'ping' on a Service Binding or Durable Object stub. Are you trying to use RPC? If so, please enable the 'rpc' compat flag or update your compat date to 2024-04-03 or later (see https://developers.cloudflare.com/workers/configuration/compatibility-dates/ ). If you are not trying to use RPC, please note that in the future, this property (and all other property names) will appear to be present as an RPC method.
```
Contributor guide
Assessment
This issue has not been assessed yet.