Logging in or registering occasionally hangs indefinitely. #33689
Replies: 27 comments 15 replies
-
Moving to discussions. |
Beta Was this translation helpful? Give feedback.
-
I have experienced this behavior as well. Like the OP said, it does not happen frequently, I honestly figured it might have just been me. Good to know others are experiencing this as well. @driesvints please let us if there is any info you might need to for debugging. Cheers 🍻 |
Beta Was this translation helpful? Give feedback.
-
Same here. Happens sporadically. |
Beta Was this translation helpful? Give feedback.
-
This happens with the default login page provided by Laravel. It does not happen with custom made. |
Beta Was this translation helpful? Give feedback.
-
I have this issue, but for me it's closer to 100% on local (homestead) and closer to 0% on production. I couldn't say what changes I have or haven't made. |
Beta Was this translation helpful? Give feedback.
-
I've noticed this behavior on all of my apps that I've upgraded to 7.22.4. Not sure if there is any correlation or not. Happens very sporadically. If you just refresh you're logged in. I've noticed this both locally (Valet 2.11.0) and in production (both PHP 7.4.8). I honestly thought it was just my machine/connectivity. I will try to investigate more on my end. |
Beta Was this translation helpful? Give feedback.
-
It has happened to us also on a live server. However, for some reason, it happens only when you hit the Enter key instead of button click. |
Beta Was this translation helpful? Give feedback.
-
After you refresh and what not, you're logged in, so, if you logout and re-login, does it still happen? |
Beta Was this translation helpful? Give feedback.
-
I have experienced this often on my own applications as well as other sites I know use Laravel. Never been able to trace the issue however! |
Beta Was this translation helpful? Give feedback.
-
This issue is happening to me 100% of the time on my local application when I first try to log in. After refeshing the page I am logged in correctly and the issue does not happen again even if I try logging out and in again. Only the first time does it hang indefinitely. |
Beta Was this translation helpful? Give feedback.
-
Managed to make it reproducible all the time on incognito, so definitely an issue. Outside incognito i can't reproduce and works all the time for me. Weirdest thing i notice, for me at least, if i hardcode the credentials that's passed to the Doesn't seem to be the lottery thing, i've disabled it on the code. Happens on the Weird stuff 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
Any packages you are all using? Spark? Anything? I can't recreate so far on Forge or Vapor (both are running the new patch). |
Beta Was this translation helpful? Give feedback.
-
Important to keep in mind that the only thing the security patch did is add the hashed version of the cookie name into the encrypted cookie payload. It's hard for me to imagine how that would make the browser hang. |
Beta Was this translation helpful? Give feedback.
-
@taylorotwell I made a quick video showing this problem occurring while logging into the Laravel Nova dashboard. Some details:
This is the flow I had experienced multiple times, both locally and live applications, running various versions of Laravel. Please let me know if I can provide any other details that may help 👍 Video Link: https://youtu.be/F-44NRT8SEg |
Beta Was this translation helpful? Give feedback.
-
This https://support.google.com/chrome/thread/16401014?hl=en seems to be a very similar if not the exact same problem. |
Beta Was this translation helpful? Give feedback.
-
I have this issue as well. |
Beta Was this translation helpful? Give feedback.
-
Same problem where. Also using chrome. Will test incognito mode and disabling all extensions. |
Beta Was this translation helpful? Give feedback.
-
Has anyone able to find a solution to this yet? |
Beta Was this translation helpful? Give feedback.
-
I hope this isn't unhelpful, but I have the exact same behavior in Laravel 5.8... As the others have mentioned, if I create a new incognito window, navigate to the registration page, and submit my registration form it will occasionally hang and process the request forever, but when this happens I can see in the database and on refresh or open in a new incognito tab that I have successfully registered. So the registration works it just doesn't return properly. Also if I then logout and try to register/login again, it never happens. That is, once it register/login once in a "session" it doesn't seem to happen again. |
Beta Was this translation helpful? Give feedback.
-
Same issue on Laravel 8.03 with jetSream. Tested with plug-ins disabled and within incognito mode. |
Beta Was this translation helpful? Give feedback.
-
Same here on Laravel 8 using valet. And it happens only in Chrome and also in incognito mode but not on Firefox. |
Beta Was this translation helpful? Give feedback.
-
Same problem here as well. Laravel 8.11.2 running locally with Valet, PHP 7.4.11. Is it actually a Laravel issue or a Chrome one? |
Beta Was this translation helpful? Give feedback.
-
I had the same issue but fortunately I was using livewire so i used it login and register. |
Beta Was this translation helpful? Give feedback.
-
Can also confirm that I face this very regularly on Laravel 8, only on Chrome in both incognito (extensions disabled) and a normal Chrome profile. Is there any information I can provide to help track down the cause of this? I can't say I've ever experienced this on any other websites. |
Beta Was this translation helpful? Give feedback.
-
I have this problem ever so often on a Laravel 5.8 application with PHP 7.1. |
Beta Was this translation helpful? Give feedback.
-
I am also facing this in production with fortify, laravel 8. My site is hosted with forge. |
Beta Was this translation helpful? Give feedback.
-
I faced the same issue and was having this issue only on google chrome. There was no problem with incognito tab or any other browser. I cleared the browsing data of google chrome and the problem went away. |
Beta Was this translation helpful? Give feedback.
-
Description:
About 10-20% of the time, on both local and production servers, logging in or registering causes the browser to start loading (the spinner on the tab starts going), but never finishes. The request never times out. Refreshing the page logs the user in as intended.
I've made no changes to the default auth scaffolding.
This Reddit thread shows others have the same problem:
https://www.reddit.com/r/laravel/comments/hzguta/laravel_sometimes_hangs_on_login_or_registration/
Steps To Reproduce:
Attempt to log in or create a new account using standard Laravel auth scaffolding.
Beta Was this translation helpful? Give feedback.
All reactions