-
Notifications
You must be signed in to change notification settings - Fork 30
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
http://, localhost, IPs not supported in callback URL, Missing Token Error #12
Comments
@tolrahC again thanks for raising the issue. I will update the documentation and some other older issues soon and think more about a proper solution. Solution A: using automatic authorization
Both solutions are not ideal, because the http scheme is not allowed anymore. So you'll have to setup certificates and modify the Python application or using an reverse proxy to host a HTTPS front calling back to a HTTP url. Solution B: using manual authorizationThis is probably easier at the moment.
Please let me know if any of this works out for you! |
@magnific0 I still have the missing token error doing solution B. |
@magnific0 same behavior here ... tried several times ... not a user error ;) .... parameters.py", line 435, in validate_token_parameters |
I'm not sure that Withing's end is fully working right now, my IFTTT integration hasn't worked since the 14th |
@magnific0 I finally got it working manually using curl (Nokia Help here) I never worked with Python before, but after a quick debug session the problem seems to come from the OAuth2Session class, but I guess you already know that ;) |
Hello. Has the MissingTokenError issue been solved? I have just launched the script in a new computer and I'm getting this error. I cannot use the localhost solution as in my old computer because Nokia wouldn't allow it so I switched to @magnific0's proposal of using https://httpbin.org/anything with a manual authorisation, but after I copy the code back into the script, I get this MissingTokenError. @tolrahC, how did you managed to get it working manually? Thank you all. Regards. |
Hi, I'm not sure what the timeout is exactly, but you need to be rather quick in copying the values over. Maybe that helps? |
How fast should I be? :) I believe there are two different issues here. As you told me to be fast, I tried several times intending to be as fast as I can be, and once I got a timeout issue which is not the missing token issue that I was having previously. Most of the times I try the manual configuration, the error I get back is this one:
It seems to me as an authorisation problem. One of my latests tries, the one I thought to be the fastest, I got a totally different error. I see the timeout you are talking about.
What do you think of this? Thanks. |
@cristian5th I retrieved the accces token using curl and putted it in the config.ini file. The config file should look like this: [nokia] |
Hi @tolrahC What is the url you are feeding to curl? Any specific argument? I'm trying with the url given as answer when I authorise the application at Nokia but all curl is giving me back is the same informations as the Nokia webpage. There is no token nowhere.
Then, you are stating that I should simply write the config.ini file with this data but, how is it that the config.ini file which I retrieved from my old computer was also raising the missing token error? I was originally configured with the localhost callback URL and I moved all the files from the old to the new computer, including the config.ini. There I got the missing token error so I tried to simply delete the application at Nokia and start everything again. Since then, I haven't managed to make it work, always because of the missing token error. I have just downloaded the latest update but I still have the same issue. Thank you. Regards. |
@cristian5th You have to use this method here |
What a trip! Finally! It worked following the method you mentioned @tolrahC. Thank you very much for your help and your patience. |
I am trying to register for api access at https://account.withings.com/partner/add_oauth2 |
An easier workaround is to make sure To force a specific version use:
I would also recommend that a virtual environment be created for the script:
|
I'm having an issue when trying to configure the Nokia connection.
First: Now Nokia require a callback url that does not contain an ip address or localhost, also the port must be 80 or 443.
Secondly: I'm having this error when trying to create the connection with Nokia, in automatic or manual mode
The text was updated successfully, but these errors were encountered: