-
Notifications
You must be signed in to change notification settings - Fork 92
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
Error: Unable to obtain claim code #45
Comments
hey @ukd1! Sorry to hear you're having trouble! Are you by chance already connected to the Photon when executing this command? EDIT: Connected as in connected to the Photon-EWVK Wi-Fi network? |
@emilyrose thanks! nope - I was connected to my home wifi network :) |
We are having this issue too. Latest spark-server and latest particle-cli. Not sure if this is a server issue or a client issue. Any workarounds? The particle-cli command line shows exactly what @ukd1 posted (except with The server terminal window shows:
|
@emilyrose this is still happening. I've worked around it by pairing using the iPhone app; but still your tooling appears broken. I tried over wifi, plus usb.
|
Hi @ukd1, Are you using the local cloud, or the main Particle cloud? I've noticed some people mention the local cloud, and as far as I know, the claim_code functionality hasn't been extended to the local cloud yet. You can claim photons using the normal process of Thanks, |
@dmiddlecamp no idea what that is; I was using the web interface; I tried in the downloadable one after this and thats broken too. For the error reported, I'm just using the CLI tool (this project) and I just typed
that's all 👍 |
I can see from the code the local cloud has the API I didn't know about |
|
@ukd1 I've seen that error when the access token is expired or invalid. Can you try to logout and then login? |
@brycekahle I did that at the time, also I fixed for myself by using the app. I don't really have much time to play, so likely won't be able to help any further now I've worked around it for me...sorry. |
we saw this recently during the hackathon, I don't have more details, but I think we saw it with a good access token. |
Hiya, just ran into this myself this evening with my new Internet Button. Installed node 0.12.7 using nodenv and set it as my global environment. Then fresh npm install -g particle-cli and finally particle setup. My particle module was blinking blue and plugged into my local USB port. Error message was "[Error: Unable to obtain claim code]". I will try provisioning using the iOS app and report back... |
I was able to claim the device successfully with the iOS app. @emilyrose let me know if you'd like me to debug it with you, here to help! |
After logging out, then logging back in, I was successfully able to claim my Photon. I, originally, logged in earlier today around noon on my work network, then tried to claim my Photon at home, hours later. Similarly, I encountered: ! PROTIP: There was a network error while connecting to the cloud... and { error: 'invalid_token',
error_description: 'The access token provided is invalid.' } A friendly message about invalidation would be helpful. |
I get
Error: Unable to obtain claim code
when trying to claim my photon.I found this, but there is no solution there.
Any ideas?
I'm on a 2012 MBP Retina, running 10.10.3. particle cli version info;
The text was updated successfully, but these errors were encountered: