-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending POST Request to Get Token Returns Error #6
Comments
Hello, I am experiencing the same error as @chialuka. I have already tried the same code he shared and an alternative explained in the ICD API Authentication docs shared here.
Does anyone knows how to solve this? |
@d-cifuentes, I finally solved it by setting "Content-type" as "application/x-www-form-urlencoded" I found this by searching through the headers sent in their Swagger API documentation. This is what my final request looks like:
|
Thank you so much! You have no idea how many hours i had spent until this moment. |
@d-cifuentes, you're welcome! And I totally understand. I spent weeks on it. Had to leave it and then found the solution when I came back to it after about 6 months :) |
where do you guys get the information?
I'm very new to ICD-10 stuff. |
Register here: https://icd.who.int/icdapi |
I've been trying to send a POST request to get the token but I keep getting an error from the API saying the request is invalid. I'm using Node.js.
The request returns a 400 status code with response:
data: { error: 'invalid_request' }
I'm not sure where the problem is from and I'd appreciate any help.
The text was updated successfully, but these errors were encountered: