OAuth flow failed. Verify the configurations and try again. Error detail:Invalid null response.

Pallavi47
Tera Contributor

Need help!
Unable to get the OAuth token. Getting an error message saying "OAuth flow failed. Verify the configurations and try again. Error detail:Invalid null response".

I have configured and provided the client_id, client_secret, OAuth API Script: OAuthPasswordGrantType, and Default grant type: Resource Owner Password Credentials. 

Have configured OAuth Entity Profile and OAuth Entity Scopes.

The postman application is able to get the token from thrid party endpoint without any error. 

Let me know if any further information is required to tackle this issue.

Thanks!

4 REPLIES 4

MattiasJonsson
ServiceNow Employee
ServiceNow Employee

Do you see anything of value in the "Outbound HTTP Requests"?

find_real_file.png

You might want to set the LOG level to something higher as well. There are two sys_properties you can change that does sort of a catch-all for requests. [Beware, don't do in prod, disable once done etc…]

glide.outbound_http_log.override.level = all
glide.outbound_http_log.override = true

find_real_file.png

If helpful or correct, please indicate so!

Hello,

I see a record in "Outbound HTTP Logs"

find_real_file.png

I had the same issue appearing today and I realised that I had an incorrect URL in the OAuth configuration. SN appears to set the response status to -1 for any bad URL in the request.

MS25
Mega Sage

Check this 
OAuth flow failed.Verify the configurations and try again. Error detail:invalid_request, Missing par...

Please mark this response as correct or helpful if it assisted you with your question, so others can benefit from this answer.