Getting 500 error on main url but not on dev url pointing to same build
When someone signs in on our site (app.aftergame.co) we get a 500 error. However for the same build when pointing to the Cloudflare generated url (6e9c7197.aftergame-web.pages.dev) it works??
Here's the trace:
I can't see anywhere to see logs for what's happening. On our API server everything looks good so it feels it's happening somewhere in Cloudflare
![No description](https://cdn.answeroverflow.com/1246312173941293106/Screenshot_2024-06-01_at_15.59.23.png)
4 Replies
If you go into your pages deployment, and then go into functions page. You can tail the logs there, it'll only show live logs but then if you try signing in you might see the requests etc 🤔
that is surprisingly hidden - thank you this has helped!
Oddly, I'm getting an
InvalidTokenError: Invalid token specified
on my main domain but not .dev domain - this is after I clear all cookies / local storage.
Not sure why they would be different 🤔Is that a cloudflare error or from your application? Or other third party
I assume this is something to do with authentication. But it is odd why it works on one URL but not the other that are both pointing to same build.