I have a client side application developed in angularJS. As i am sending POST request to Drupal to create user, user is getting created without any delay if i check in Backend. But i get response after 6minutes!. The request just goes on and on!! Any advice what i am doing wrong?Stuck request




It's unlikely that your site needs 6 minutes of CPU time to create a user but you can confirm that checking the system load during the process.

When I've faced that kind of problems the reason was one or more timeouts when trying to connect to an external service from the server.

For example, imagine that when you create the user the site querys an external database via an HTTP connection checking for the user usual nickname (Abigail → Abbie, Peter → Pete, etc). If that external service is down your site happily will launch the connection, waiting patiently the answer until the timeout is reached and connection is closed. If your site tries to connect six times and system timeut is 30 seconds then there you have your six minutes for use creation.

Check your installation for modules that may conenct to external services, check dblog for timeouts errors messages, check system log for similar messages. Disable any suspicious module and try to create a user.

If this only happens when using Services (not in the regular user creation form) narrow your search to any Services related modules or custom code.

  • My user is getting created instantaneously in Drupal but response comes after 6 minute – Ashish Singh Apr 7 '15 at 10:19
  • Exactly, check any after user creation process and specially if external connections are done. I dind't mention, but your best options is to debug the process using XDebug. – sanzante Apr 7 '15 at 16:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.