cloud-grpc icon indicating copy to clipboard operation
cloud-grpc copied to clipboard

Incorrect statement in server.js

Open mdemblani opened this issue 7 years ago • 0 comments

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

mdemblani avatar Jul 09 '18 11:07 mdemblani