Skip to content

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

@mix3d

Description

@mix3d

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions