NATS payload issue

245 views
Skip to first unread message

Hemant Joshi

unread,
Nov 6, 2019, 5:54:27 AM11/6/19
to nats

Hi , 


I was facing an issue of maximum payload violation error , so i have created a new NATS.conf file like this 
/home/ec2-user/gnatsd -c /home/ec2-user/nats.conf
After this my services are not connecting to NATS , its always say connecting to Transporter and eventually doesn't connect .Can anyone helps or suggest something here .
Regards,
Hemant Joshi

Ivan Kozlovic

unread,
Nov 6, 2019, 10:36:55 AM11/6/19
to nats
So if I understand correctly, you use not to have a config but had the issue with maximum payload (which default is 1MB).
Then you used a configuration file, presumably to increase the max payload value, and then your applications cannot even connect?

Would you mind sharing the content of the configuration file?

Ivan.

Hemant Joshi

unread,
Nov 7, 2019, 2:18:04 AM11/7/19
to nats
Hi, 

i have added following in my nats.conf :

maximum_payload = 3MB (in bytes)
port = 4222

So after these changes the connection with Nats is very unpredictable .

Hemant

Ivan Kozlovic

unread,
Nov 8, 2019, 2:38:02 PM11/8/19
to nats
Hemant,

I see nothing in this config file that would explain it.
You could try to run with `-DV` and see if some more debug/error information is reported.

You also need to print the actual error returned by the NATS library in your service when failing to connect. It may give some clue too.

Ivan.

Hemant Joshi

unread,
Dec 1, 2019, 10:22:42 PM12/1/19
to nat...@googlegroups.com
Thanks Ivan .Seems like there were some unhandled cases which were causing nats time out .

--
You received this message because you are subscribed to the Google Groups "nats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to natsio+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/natsio/09f76441-55ca-4b9f-b6f8-0eb753298b5c%40googlegroups.com.


--
  Thanks & Regards,
  Hemant Joshi Gautam
  Technical Project Manager 
  Thrymr Software


WARNING: Information in this e-mail (including all attachments) is confidential and legally privileged. It is intended solely for the identified recipient(s) to whom it is addressed. If you are not the intended recipient, please notify the sender by replying to this e-mail, and please delete the message and any other record of it from your system immediately. Do not copy or forward this e-mail and any attachments or disclose its contents to any person.

Reply all
Reply to author
Forward
0 new messages