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:
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.
- Purging the cache
- Turning on dev mode.
- Changing the ssl encryption mode.
- Pausing CF.
5.Turning off the dns proxy.
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.