Reputation: 31
I use Google Custom Search API. url example;
This url working correctly a year, but return error code 500 since last week. What is the reason for this error. Any one can help me?
note: There are no invoices outstanding
Upvotes: 3
Views: 4331
Reputation: 6806
Old question, but, for the record: I had this same result when I had a bug which created a $
character as a parameter separator in the URL, instead of an &
. So, it appears that a malformed query can also result in this error being returned.
Upvotes: 0
Reputation: 160
We were also confronted by this problem. It seems that Google has changed its custom search API a bit on 2013-03-06.
We used to have the cx ID point to Google Custom Search API project ID. That no longer works and now gives this unhelpful 500 Internal Server Error response:
{
"error": {
"code": 500,
"message": null
}
}
Based on our tests, here is how you can solve the problem:
I hope this helps! :)
Upvotes: 3