Getting Null Exception in GooglePlus Page API - google-api

I got an exception frequently while getting and posting activities via GooglePlus Page API. The details are given below:
APIs:
https://www.googleapis.com/plusPages/v2/people/userId/activities/collection
https://www.googleapis.com/plusPages/v2/people/userId/activities
Exception:
{"error":{"message":null,"code":500}}
Can anyone tell me why i am getting the above exception and how to fix this?

I like to call 500 a server hiccup. Normally you can just send the request again and it will work. Why you are getting it only Google knows. Just send it again.
INTERNAL_SERVER_ERROR (500)
Error code Description internalError The request failed due to an
internal error.
You can find it in Googles standard error responses page.

Related

Why am I getting a 403 error in YouTube Data API v3?

I am trying to use the youtube-v3-api for a school project. I keep getting the message, "The request cannot be completed because you have exceeded your quota."
How can I get past this?

Rest template exchange method working incorrectly

I am consuming another restful web service that's https inside my rest WS. When I am running my application on localachine the code works fine. But as soon as I deploy it and then access my application through that url, that rest template call written inside my code gives 400 error.
Here is the log trace
400 Bad Request
: org.springframework.web.client.HttpClientErrorException: 400 Bad Request
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:76)
at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:524)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:481)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:439)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:317)
at com.pekam.myandroid.MainActivity$HttpRequestTask.doInBackground(MainActivity.java:106)
at com.pekam.myandroid.MainActivity$HttpRequestTask.doInBackground(MainActivity.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Probably there should be an issue in your request. Either you are missing mandatory request parameters in your request XML or missing some headers which throw this 400 Bad request exception.
Please follow this Link.It may resolve your issue. Let us know for any issue.

google Translation API throwing 503 error

We are getting the error in google Translation. API throwing 503 Server unavailable loading error.
We have licenses API_KEY.
Error from the Raw HTTP action. Error during GET request. 500 Internal Server Error loading from https://www.googleapis.com/language/translate/v2?key=API_KEY&source=fr&target=en&q=Cin%C3%A9maEau%20de%20Parfum
Error from the Click action. The action failed after 3 attempts. Error loading resource: http://www.nocibe.fr/preparateur-solaire/visage/C-62816, Error return code 404, info: Not Found
About HTTP error code 503, I have got this error when I have send more than 5000 characters per request.
About other HTTP errors you can read at API FAQ

XMLHttpRequest: Network Error 0x80070005, Access is denied

We are getting this error sometimes or making continues REST API request to Yammer.
XMLHttpRequest: Network Error 0x80070005, Access is denied.
Any idea?
Ok so I got the reason for this error. When you continuously request or you hit the Yammer REST API limit mentioned in https://developer.yammer.com/restapi/ then usually this error comes.
so solution we followed is smartly handle your code by making request as per Yammer like putting some caching or limiting controls to page.
I hope this will solve your issue.

Error message when using google contact api

When I try to fetch contacts from gmail, I received this error message:
The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:
The site "http://url.com" has not been registered.
May I know how to rectify it? Thanks!
Have you tried registering the domain with Google's API?
docs:
https://developers.google.com/accounts/docs/RegistrationForWebAppsAuto#new
resgister url:
https://accounts.google.com/ManageDomains
Also if you are making calls from http and not https you may be seeing problems there too.

Resources