captain
captain
CDCloudflare Developers
Created by captain on 12/7/2023 in #workers-help
getting 525 response when using fetch to a specific remote domain
hey guys, I have been struggling all day with a 525 error code. Trying to run a fetch request...that works in the sandbox of the api I am making a request to without issue, as well as in postman, but when running from my worker app....525. What's crazy is it was working not too long ago. That said, I am reading here: https://community.cloudflare.com/t/ssl-525-problem-when-calling-an-api-from-cloudflare-worker/356930/13 that the only solution is to create a ticket with cloudflare and that its related to the cloudflare not handling the ssl handshake properly. Is that true or does anybody here have any other suggestions? If there are any cloudflare staff, attempting to hit an endpoint that includes: https://sandbox.dev.clover.com/v3/merchants/ Thank you
18 replies
CDCloudflare Developers
Created by captain on 1/26/2023 in #workers-help
fetch keeps giving me TypeError: Callback returned incorrect type; expected 'Promise'
I am in the middle of converting my service worker to a module app. I am able to publich but when getting to running it, when it hits: const resp = await fetch('https://csprng.xyz/v1/api') I get the following error in my tail logs: TypeError: Callback returned incorrect type; expected 'Promise' Would anybody have any idea why this is happening and how to resolve? I am running wrangler 2.8.1 Appreciate the tips
3 replies