UnknownHostException: graph.facebook.com - spring

I am trying to login with facebook, with spring-social, but after of login in facebook I got the next error:
ERROR: org.springframework.social.connect.web.ProviderSignInController - Exception while completing OAuth 2 connection:
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://graph.facebook.com/v2.3/oauth/access_token":graph.facebook.com; nested exception is java.net.UnknownHostException: graph.facebook.com
In the rest template class, after doExecute(expanded, method, requestCallback, responseExtractor); appears the error, expanded is https://graph.facebook.com/v2.3/oauth/access_token, method POST.
My code is from spring-social-samples, from github.Maybe the problem is in my account of facebook developer???

Related

Using laravel 5.8 with Socialite login Facebook

when login by facebook get error on browser :
GuzzleHttp \ Exception \ ClientException (400) Client error: POST https://graph.facebook.com/v3.3/oauth/access_token resulted in a 400 Bad Request response: {"error":{"message":"Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this (truncated...)
[li][1]

OAuth client webapp with UAA server - error="access_denied", error_description="Error requesting access token."

I am running the OAuth Client from this https://github.com/cfid/uaa-samples/tree/master/basic-java-client
When I try to access the the app, it redirects me to the UAA login page. after I enter credentials, I get the following error:
error="access_denied", error_description="Error requesting access token."
Looking at the logs on my client webapp, I see the following:
-- AuthorizationCodeAccessTokenProvider: Encoding and sending form: {grant_type=
[authorization_code], code=[S9uXYsvgn4], redirect_uri=[http://localhost:8081/sampleapp/login]}
[2018-07-29 15:23:38.759] samples/app - ???? [http-nio-8081-exec-4] .... WARN -
-- RestTemplate: POST request for "http://localhost:8080/uaa/oauth/token" result
ed in 401 (null); invoking error handler
I am not sure what the issue is. Looks like in the call to oauth/token, it should also send the client_id and client_secret? But from the logs above, it looks like its not sending them. Is that the issue? If yes, why are these parameters not sent? Any ideas?

403 forbideen error while doing authentication using openid

When i was trying to open
http://localhost:8000/openid/login
i am facing 403 forbideen error
Cause of 403 Forbidden Errors
403 errors are almost always caused by issues where you're trying to access something that you don't have access to.
follow this link how to fixe it : https://www.lifewire.com/g00/403-forbidden-error-explained-2617989?i10c.referrer=https%3A%2F%2Fwww.google.lu%2F

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

Getting Null Exception in GooglePlus Page 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.

Resources