http://blynk-cloud.com/XXXXXXXXXX/get/V1
I’m getting an invalid token error when I type in a web browser.
http://blynk-cloud.com/XXXXXXXXXX/get/V1
I’m getting an invalid token error when I type in a web browser.
Because either the token IS invalid… sometimes a copy paste is not as ‘clean’ so to speak and and possibly missing a character?
Or you are running into the Geo DNS issue where the server you are trying to connect too (geographically) may not be the server your account is stored in… Are you trying this API call from somewhere else than your normal home environment?
no. same home environment. how can I solve the problem?
As I already said… Be sure the Auth code is valid and properly pasted into your URL. The error is very self explanatory.
For example I just tested this OK on my Local Server (a WATT reading from a sensor)… the only difference being I used my Server IP:port and my Auth instead of http://blynk-cloud.com/<yourAuth>/get/V1
I just tested an API command on my Cloud account and it also worked as advertised.
Here, you can send strings to my terminal if you want at least until I tire of the novelty and delete the project (although as I am in North America, you may run into the Geo-DNS issue??)
http://blynk-cloud.com/93a2e01143814b5f9438f3f196c88d43/update/V0?value=Hello Gunner
Yep… since you are in Turkey and I am in Canada… we are not using the same Cloud servers.
Well, it was a try at least… although I think someone sent something as my terminal window now only shows the word clear
There is always a slim chance that your cellular provider and your computer’s internet provider have different routing that might cause the Goe-DNS issue with the API. NOTE the geo-DNS issue it is no longer a problem with the App
You could always try to use your phones browser to send your API test… try with both your cellular connection and then with the same internet connection as your computer.
At the risk of repetition… have you laid out the AUTH with the emailed one you got and confirmed that no missing or extra characters are there?
Sometimes just refreshing the AUTH and trying again can help with that.
Auth Token correct
Email the Auth code to yourself from the app, then share your Auth code here (copy and paste it directly from the Blynk email) and I’ll try it on the European server.
While you’re at it, open a command prompt and type “ping blynk-cloud.com” and share the results here as well.
You can easily change you Auth code for the project in future once we’ve figured-out what the problem is (but you’ll need to re-flash any devices that have the Auth code hard-coded into their sketches).
Pete.
139.59.206.133 ip adress
auth token ef74d22a78a6452f82e599d52ec0838e
virtual pin V0 active
Yep, that’s certainly an invalid Auth code.
This should give you data about the widgets used in your project:
http://139.59.206.133/ef74d22a78a6452f82e599d52ec0838e/project
but just returns “Invalid Token”.
What’s the history behind this project?
Has it been set-up for a while?
Are you using that Auth code in any sketch, and is it working?
Have you tried re-generating the Auth code, as suggested by @Gunner?
Pete.
Hello PeteKnight, Hope you’re doing well this quarantine , since this discussion is still open I am facing same issue whenever I try get pin info or project status or even write to a pin I did everything setup that’s my auth code Q9OUwwxI8RnvbkB7078qQOvRqfR-xbdt
I checked from previous threads no spacing issues please help
always invalid token
Your CoronKit project is in the Frankfurt server and I can access it via this URL:
http://139.59.206.133/Q9OUwwxI8RnvbkB7078qQOvRqfR-xbdt/project
Pete.
Thanks Pete,
but how did you know that ? and how can I determine that ?
Regards,
This will give you the IP address of your local server, which in your case should be 139.59.206.133
I looked at your location and realised that, like me, your local Blynk cloud server should be European one in Frankfurt. I put the IP address of that server (139.59.206.133) in to the browser along with your Auth code and the /project
API call and it returned the JSON data for your project.
Had this not worked then I’d have substituted the IP addresses of the Asian and American servers until I found one that worked.
Pete.
well I tried to ping the domain mentioned above and got the following result
PING blynk-cloud.com (45.55.96.146): 56 data bytes 64 bytes from 45.55.96.146: icmp_seq=0 ttl=253 time=134.652 ms 64 bytes from 45.55.96.146: icmp_seq=1 ttl=253 time=133.351 ms
and tried this IP and received invalid token
Okay, that’s the New York server’s IP address.
Maybe your ISP (or government?) is doing something odd with DNS servers?
Pete.