-
Notifications
You must be signed in to change notification settings - Fork 662
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
Receiving error: "status":342 #347
Comments
I think, the problem is in OAuth.prototype._prepareParameters in oauth.js After calling signUrl (which uses _prepareParameters) the parameter 'oauth_signature' is already in the extra_params. So when calling get (which calls _prepareParameters again) the signature is calculated inclusive the first 'oauth_signature' and it appends another new parameter 'oauth_signature which ist incorrect.
|
Thank you for the reply! Update:
works by itself, so I instead used the request package to get from that URL and it works just fine. Per the docs it seems like the signUrl part is unnecessary and I should be able to do something like
But I tried that and it didn't work. To me this signals that something may be wrong with this package's .get() method. |
Hi all, I've been running some code that gets measurement data via Nokia API for months now, but sometime in mid-February it started hitting this error:
{"status":342,"body":{},"error":"The signature (using Oauth) is invalid"}
for every user I try to get data for.Here's the gist of the code. The function below is used in a loop of user tokens/secrets to get their data.
Did something change in Nokia's API that I need to change this code for? If others aren't seeing this error then maybe I can change something to get it working again.
The text was updated successfully, but these errors were encountered: