Jump to content

Cannot perform database operation


Recommended Posts

Hey,

We use the REST API. In addition, we are writing a lot of the report of 'Can not perform database operation'.

Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( 

A few seconds later, the message is gone and we get the data.

What can be the cause of this?

Thank you

Link to post
Share on other sites

Hi @leendertvdk

Usually a 503  is a HTTP code for Service Unavailable.

Quote

The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay.

Reference: https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

It could be something blocking the requests through temporarily like DoS Protection if it's making too many requests.

Link to post
Share on other sites
On 12-10-2017 at 3:58 PM, Martin_T said:

Hi @leendertvdk

Usually a 503  is a HTTP code for Service Unavailable.

Reference: https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

It could be something blocking the requests through temporarily like DoS Protection if it's making too many requests.

@Martin_T

Thank you for the explanation. I already thought of something like this.

I now have the refresh function slower

Link to post
Share on other sites
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...