cloud-grpc
cloud-grpc copied to clipboard
Incorrect statement in server.js
Based on the Proto file, the List service states that it returns a list of books, which when received by the client would be of the format:
{ books: [] }. But the statement in server.js block directly sends the books array to the callback. Hence the client will not receive anything.
It should rather be sent as an object as follows: {books} or {books: books}
The link of the page where the issue is: https://codelabs.developers.google.com/codelabs/cloud-grpc/index.html#4