Skip to content
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

Particle-cli fails to reset keys for Particle Core device #589

Open
mix3d opened this issue Jul 11, 2020 · 0 comments
Open

Particle-cli fails to reset keys for Particle Core device #589

mix3d opened this issue Jul 11, 2020 · 0 comments

Comments

@mix3d
Copy link

mix3d commented Jul 11, 2020

Description

Attempting to reset keys for a device that was once assigned to my account (but removed).

It outputs the following error:

The Doctor didn't complete successfully. Cannot destructure property 'protocol' of 'undefined' as it is undefined.
in Verbose mode, the additional error:

TypeError: Cannot destructure property 'protocol' of 'undefined' as it is undefined.
    at KeysCommand.writeServerPublicKey (/Users/madison/.particle/node_modules/particle-cli/dist/cmd/keys.js:390:5)
    at /Users/madison/.particle/node_modules/particle-cli/dist/cmd/doctor.js:328:35
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async CLI.runCommand (/Users/madison/.particle/node_modules/particle-cli/dist/app/cli.js:160:7)
    at async CLI.run (/Users/madison/.particle/node_modules/particle-cli/dist/app/cli.js:190:14)

Steps to reproduce

What are the minimal set of steps required to reproduce the issue?

  • After running particle doctor, and following all the flashing steps, the last item asks about resetting keys.

Expected result

Resets keys as normal

Actual result

Error as described above

Environment

Tell us about your setup:

  • OS: MacOS 10.15.3
  • Node (run node -v): v10.16.0
  • NPM (run npm -v): v6.14.4
  • Particle CLI (run particle version): v2.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant