I have the problem from a 2 days ago, that Curl, now answers “invalid token”
In raspberry Pi and Orange Pi, if I run the line it always gives invalid token, but on a Windows 10 computer from Bash I run the line "curl -X GET http://blynk-cloud.com/token/update/v21?value = 1 "and it works perfectly.
The Curl version is the same, and I don’t understand why it gives me this error.
do you put the token into the URL using variable or is it hardcoded?
if #1, then make sure the variable is really set and if you enclosed the url in quotes, make sure they’re proper doublequotes:
Connection #0 to host blynk-cloud.com left intact
Invalid token.pi@raspberrypi:~ $
IT DOES NOT WORK.
FIXED:
My pc queries Google DNS 8.8.8.8
My Raspberry Pi consults the DNS to my Router that is configured to Google 8.8.8.8, but for some mysterious reason, it does not solve the same and gives me another IP for Blynk.
With sudo nano /etc/resolv.conf, removing my router from the configuration and setting: nameserver 8.8.8.8 is solved and the two go to the same ip and I have no errors executing the code.