Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ› Bug Report β€” WARNING: Tried to access method or property 'ping' on a Service Binding or Durable Object stub. Are you trying to use RPC? #2001

Open
FlatMapIO opened this issue Apr 10, 2024 · 0 comments

Comments

@FlatMapIO
Copy link

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.
@FlatMapIO FlatMapIO changed the title πŸ› Bug Report β€” 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 πŸ› Bug Report β€” WARNING: Tried to access method or property 'ping' on a Service Binding or Durable Object stub. Are you trying to use RPC? Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant