Skip to content

FW Uploader might provide a broken JSON #166

Open
@kittaakos

Description

@kittaakos

Describe the problem

From time to time, when I start IDE2, the firmware uploader does not provide a valid JSON when executing ./arduino-fwuploader" firmware list --format json.

IDE2 error is:

Uncaught (in promise) Error: Error executing "/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/build/arduino-fwuploader" firmware list --format json: unexpected end of JSON input
    at currentExtensions.<computed> (node.cjs:963)
    at read (node.cjs:403)
    at Array.readObject [as read] (node.cjs:496)
    at recordDefinition (node.cjs:956)
    at read (node.cjs:392)
    at checkedRead (node.cjs:193)
    at Packr.unpack (node.cjs:103)
    at Packr.decode (node.cjs:175)
    at MsgPackMessageDecoder.decode (rpc-message-encoder.ts:181)
    at MsgPackMessageDecoder.parse (rpc-message-encoder.ts:185)

To reproduce

I do not know the exact steps to reproduce, but I see the same error almost weekly in the logs.

Expected behavior

The firmware list --format json command provides a valid JSON.

Arduino Firmware Uploader version

arduino-fwuploader Version: 2.2.2 Commit: 8944d4a Date: 2022-10-17T14:51:09Z

Operating system

macOS

Operating system version

12.6.3

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 version
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

topic: 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