grpc empty object when updating the library index #2046
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
topic: gRPC
Related to the gRPC interface
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
When using an grpclient to update the library index, command
UpdateLibrariesIndex
, the download process is ended by and empty object following the "end" messageTo reproduce
Start the CLI in deamon mode
Create an instance (here using the
grpcurl
tool)Issue an
UpdateLibrariesIndex
commandgrpcurl \ -plaintext \ -import-path ./rpc \ -proto cc/arduino/cli/commands/v1/commands.proto \ -d '{"instance": {"id": 1}}' \ 127.0.0.1:50051 \ cc.arduino.cli.commands.v1.ArduinoCoreService.UpdateLibrariesIndex
You should observe an output similar to the following
Notice how there's an empty
{}
object at the bottomExpected behavior
The message
Closes the stream with no additional objects
Arduino CLI version
commit a58d5ad
Operating system
macOS
Operating system version
13.1 (22C65)
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: