Skip to content

Cannot upload to board over the air, if wrong password was provided once. IDE caches the user fields #1359

Closed as not planned
@kittaakos

Description

@kittaakos

Describe the problem

When uploading to a MKR1000 based on this tutorial, users have to provide the password. If the password was incorrectly provided the upload with fail with Failed uploading: uploading error: exit status 1. Trying to upload again will always fail because the user fields are cached by the IDE.

To reproduce

  • Follow this tutorial to upload over the air,
  • When prompted, provide an incorrect password,
  • Upload will fail (expected),
  • Upload again; it will always fail because the fields are cached.

Reloading the window, restarting the IDE, or opening a new sketch and providing the correct password solves the issue.

ide2_caching_fields.mp4

Expected behavior

Perhaps there should be a meaningful error code/message from the CLI; authentication failed, and then the IDE will know that the user fields should be discarded.

Or

Provide a command to discard the user fields cache.

Arduino IDE version

7c361cf

Operating system

macOS

Operating system version

12.5.1

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

conclusion: invalidIssue/PR not validtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions