Hello people!
Suddenly when I try to login to my payload app through "/admin" i get redirected to "admin/login?redirect=" and then nothing more, it stops loading and is just displaying the Payload logo.
I have tried restarting the app.
Has anyone encountered this issue before, and if so what are the fixes?
Thanks!
Not sure what the issue could be. Any errors logged on the server or in the browser if you go to your inspector?
When it happens do you get a cookie assigned for your user?
Nothing in the console except a console log "[HMR] connected", and no cookies
Never heard of this before. If it were a cors issue I would expect to see console errors in the browser and if it were a server issue you'd have some logs.
The only other option I can think of is that there is an
awaitthat can't be completed causing a request to hang indefinitly.
That last point has to be the situation you're in. Are there any hooks or other extras in your
userscollection?
If you can't find it, I would open an issue on github and try to create a simple reproduction so we can address whatever this is. My guess is in that process you'll find the issue in your code.
I'm not very familiar when it comes to creating issues and such in github, so I just created a new repository for the payload files (I was gonna do that anyway in the future), have a look:
https://github.com/Anderrssonrasmus/PayloadAny luck on this issue?
Did you tried re-cloning the repo??
I am self-hosting it so I used create-payload-app. I did however try deleting my installation and running create-payload-app again but the issue wasn't solved. I "solved" it by also deleting my cluster in Mongodb, creating a new cluster and THEN running create-payload-app. So my app is running again but I literally deleted everything and redid it all and I still don't know what originally went wrong.
Did your issue has been reseolved now??
By typing forward slash
/use command
/solveto mark this thread as solved
Star
Discord
online
Get dedicated engineering support directly from the Payload team.