Error: Received message larger than max

Moved from GitHub dgraph-js/22

Posted by tkdave:

We are getting an error in the JS client using grpc
“Received message larger than max (4194538 vs. 4194304)“.

I noticed that this limitation was addressed in the golang client.

Can we open this up on the JS client as well?

Looks like the ability to pass option to the client was added 5 days ago.

Wondering if I can pass an option in like this:

Do these options flow through to the grpc client, or is it a different set of options?

We’d like to be able to do something like this:

  const clientStub = new DgraphClientStub(
    server, 
    credentials.createInsecure(), 
    {'grpc.max_receive_message_length': 1024 * 1024 * 1024}
  )

(updated with working config setting)

gpahal commented :

Yes, you can pass options to DgraphClientStub as a 3rd argument. They are passed to the grpc client.

tkdave commented :

This worked for me once I upraded dgraph client to 1.0.4 and changed my grpc option to ‘grpc.max_receive_message_length’. Thanks.