Skip to content

ERROR Uncaught Exception: Error: Request reportResult failed with message: this.target[method] is not a function #1529

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

Closed
3 tasks done
kittaakos opened this issue Oct 5, 2022 · 0 comments · Fixed by #1530
Assignees
Labels
conclusion: resolved Issue was resolved topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

Describe the problem

Installing a lib/platforms fails with tons of errors.

Try to install a platform or a lib and check the logs (frontend or backend), it's full of errors.

root ERROR Uncaught Exception:  Error: Request reportResult failed with message: this.target[method] is not a function
root ERROR Error: Request 'reportResult' failed
    at Proxy.<anonymous> (/Users/a.kitta/dev/git/arduino-ide/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:206:35)

It's a side effect of the arduino/arduino-cli@c8ff042 change. The lib/platform installation, index update, and download API have been unified on the CLI side. IDE2 does not about the download result of individual lib/platform installation but collects results of index updates only to build an update summary.

IDE2 must handle the missing reportResult API for lib/platform installation.

To reproduce

  • Start IDE2 on 61a11a0,
  • Install a lib or platform,
  • It fails.

Backend error:

root ERROR Uncaught Exception:  Error: Request reportResult failed with message: this.target[method] is not a function
root ERROR Error: Request 'reportResult' failed
    at Proxy.<anonymous> (/Users/a.kitta/dev/git/arduino-ide/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:206:35)
    at ClientReadableStreamImpl.<anonymous> (/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/lib/node/grpc-progressible.js:180:101)
    at ClientReadableStreamImpl.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at ClientReadableStreamImpl.Readable.push (node:internal/streams/readable:226:10)
    at Object.onReceiveMessage (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:340:24)
    at Object.onReceiveMessage (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:320:178)
    at /Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/call-stream.js:239:74
    at processTicksAndRejections (node:internal/process/task_queues:78:11)

Frontend error:

root ERROR Request reportResult failed with error: this.target[method] is not a function TypeError: this.target[method] is not a function
    at JsonRpcProxyFactory.onRequest (file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:64321:49)
    at file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:64300:54
    at handleRequest (file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:313315:27)
    at processMessageQueue (file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:313204:17)
    at Immediate._onImmediate (file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:313194:13)
    at processImmediate (node:internal/timers:464:21)

Expected behavior

Installing a lib/platform works.

Arduino IDE version

61a11a0

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
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Oct 5, 2022
@kittaakos kittaakos self-assigned this Oct 5, 2022
kittaakos pushed a commit that referenced this issue Oct 5, 2022
@per1234 per1234 added the topic: CLI Related to Arduino CLI label Oct 6, 2022
kittaakos pushed a commit that referenced this issue Oct 7, 2022
@per1234 per1234 added the conclusion: resolved Issue was resolved label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants