j3llyb3ans
j3llyb3ans
Explore posts from servers
CDCloudflare Developers
Created by j3llyb3ans on 8/8/2024 in #pages-help
ReferenceError: XMLHttpRequest is not defined on api endpoint
Oh also, I wonder if moving to the app dir would solve this issue, it would take a while for me to try this out since my app is pretty big lmk how it goes
12 replies
CDCloudflare Developers
Created by j3llyb3ans on 8/8/2024 in #pages-help
ReferenceError: XMLHttpRequest is not defined on api endpoint
thanks for pinging me btw, I hope this works
12 replies
CDCloudflare Developers
Created by j3llyb3ans on 8/8/2024 in #pages-help
ReferenceError: XMLHttpRequest is not defined on api endpoint
Seeing your error however, I'm now wondering if it might be an error related to gSSP, maybe we would try removing gssp and see how it goes
12 replies
CDCloudflare Developers
Created by j3llyb3ans on 8/8/2024 in #pages-help
ReferenceError: XMLHttpRequest is not defined on api endpoint
Nope, spent about a week trying to solve it unfortunately but I moved to vercel for now
12 replies
CDCloudflare Developers
Created by j3llyb3ans on 8/8/2024 in #pages-help
ReferenceError: XMLHttpRequest is not defined on api endpoint
anyone else experience anything similar to this? I tried deploying it to vercel just to check, and the same code worked I'd still like to use CF Pages though if possible the weird thing is that it seems like the problem only happens when the requests are coming from the browser. If it's through curl/postman, it works just fine, and i'm not sure why
12 replies
CDCloudflare Developers
Created by j3llyb3ans on 8/8/2024 in #pages-help
ReferenceError: XMLHttpRequest is not defined on api endpoint
No description
12 replies
CDCloudflare Developers
Created by j3llyb3ans on 8/8/2024 in #pages-help
ReferenceError: XMLHttpRequest is not defined on api endpoint
this is my prod url btw: https://jamstart.app/ been doing some debugging and it seems like the issue really is with the endpoint, but I'm not sure exactly why, I've also checked that I don't use XMLHttpRequest anywhere in my code I've checked that supabase does return valid tokens and tried those tokens manually with the spotify API ---- update/edit: I just checked again, and apparently the problem happens for all of the endpoints, not just the endpoint i mentioned above. It's a bit weird though that sometimes the endpoints would work, sometimes they won't (for example, try searching for songs using the search bar). When doing this (calling the api endpoints), sometimes the endpoint/worker would throw an error (the XMLHttpError thing), sometimes it won't. See images below.
12 replies
CDCloudflare Developers
Created by j3llyb3ans on 1/1/2024 in #general-help
Help with DNS resolution (using CF pages and CF domain name)
it worked, thanks!
6 replies
CDCloudflare Developers
Created by j3llyb3ans on 1/1/2024 in #general-help
Help with DNS resolution (using CF pages and CF domain name)
aight thanks! i'll try this out
6 replies