chumbalaya
chumbalaya
CDCloudflare Developers
Created by chumbalaya on 7/13/2023 in #workers-help
Is there any reason to believe Cloudflare workers is blocking RPC network requests to Ethereum?
When I run my /function endpoint code using node function/myfunction.js I have no issue making goerli RPC calls and getting data back. However, when I run it using wrangler pages dev . then hit the endpoint I get the ever unhelpful RPC error
POST /myfunction.js: Error: missing revert data in call exception; Transaction reverted without a reason string
POST /myfunction.js: Error: missing revert data in call exception; Transaction reverted without a reason string
Any reason to believe the same code would behave differently in wrangler vs. in a straight up node environment?
3 replies
CDCloudflare Developers
Created by chumbalaya on 7/11/2023 in #workers-help
What's the pattern for getting data from a POST to a worker function?
Just setting up a super simple function for my nuxt app, the siganture looks like this
export function onRequestPost(context) {
// Some code
}
export function onRequestPost(context) {
// Some code
}
Looks like context.request.body is a ReadableStream - should I be looking there? I'm just hitting localhost:8788/getPresignedAssetUrl from Postman and sticking data inside a JSON body
2 replies