525 on pages function when fetching specific url
I am writing a pages function and received a 525 error. At first I thought I was doing something wrong but after hours of debugging I tested a different api endpoint and it worked. I've searched the community forums and tried everything:
1. Purging the cache
2. Turning on dev mode.
3. Changing the ssl encryption mode.
4. Pausing CF.
5.Turning off the dns proxy.
Nothing works but if I change the url api endpoint I am fetching it works perfectly.
I've seen many forum posts about this issue but none with answers. The closest was someone who got CF support to change some dns settings because it may be a clash between the page and the pages function. This is the closest post that is similar to my problem.
https://community.cloudflare.com/t/requests-to-lets-encrypt-acme-server-failed-with-525-origin-ssl-handshake-error/234857
Additionally it works locally with wrangler adding to my frustration because it only doesn't work when I deploy to CF.
Here is the offending api endpoint:
https://api.fiscaldata.treasury.gov/services/api/fiscal_service/
Thank you in advance for any help.
1 Reply
Here is the other post I mentioned that has the same problem. I'm sure it's some conflicting CF settings but not sure if it can be fixed or if only CF support can tackle it.
https://community.cloudflare.com/t/http-525-on-outbound-fetch/429778/4