Cloudflare DevelopersCD
Cloudflare Developers16mo ago
2 replies
xeon06

Debugging service binding

Hey folks, I have a service binding I call like this:

const result = await ctx.runtime.env.CRYPTO.encrypt(arg)


The service is bound on my pages project, but I get this:

TypeError: ctx.runtime.env.CRYPTO.encrypt is not a function


I can confirm the encrypt method is on the class when I do edit code. I'm kind of at a loss for what else to try.
Was this page helpful?