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.