Client_id is invalid or Region is invalid

67 views
Skip to first unread message

tommaso.ve...@gmail.com

unread,
Jan 27, 2017, 7:19:01 AM1/27/17
to iHealth Developer Forum
When I attempt to login with OpenAPI-V2-master example (https://github.com/iHealthLabs/OpenAPI-V2/) I receive this error:

{"BackValue":"","Client_Para":null,"Error":"invalid_client","ErrorCode":5001,"ErrorDescription":"Client_id is invalid or Region is invalid "}

I updated all the parameters (client_id, client_secret, sc and sv_*) inside the code.

What does this error mean?

mauro.da...@bioimis.com

unread,
Jan 29, 2018, 8:21:20 AM1/29/18
to iHealth Developer Forum
Same here.
I tried to manually create the authorization url to redirect the user.

Something like this: https://oauthuser.ihealthlabs.eu/OpenApiV2/OAuthv2/userauthorization?response_type=code&client_id=768a1bc7704f471e9d14db96560680da&APIName=OpenApiBG&redirect_uri=https%3A%2F%2Flocalhost%3A8080

But when i go to that url in the browser, i get the same error:


{"BackValue":"","Client_Para":null,"Error":"invalid_client","ErrorCode":5001,"ErrorDescription":"Client_id is invalid or Region is invalid "}

No idea if i have to wait or if i'm doing something wrong.

mauro.da...@bioimis.com

unread,
Feb 7, 2018, 3:31:49 AM2/7/18
to iHealth Developer Forum
Ok. My problem was that my application was register but in "Not audit" state. Now is in "Active" state.
I can redirect the user to the url and get the authorization code.
Reply all
Reply to author
Forward
0 new messages