New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NATS server disconnecting randomly #620
Comments
Are you using NATS client with |
No, im not giving any external options for NATS server
And in docker-compose.yml i use the nats docker image as below
|
For more info:
|
It's weird. I've checked the source code of NATS and it seems it throws this error if |
May be pendantic is enabled by default, can you tell me how to disable that. |
try it in moleculer.config.js module.exports = {
transporter: {
type: "NATS",
options: {
url: "nats://localhost:4222",
pedantic: false
}
}
} |
@icebob , I checked with that configuration, but still error is coming.
|
These are the logs from NATS server side
|
Thanks, please try it with the latest NATS server 2.1.0, as well. |
Same error with NATS 2.1.0 also
|
But it happens when you hotreload a service, right? |
I will tell you clearly When ever i start the project using |
very very strange. Could you make a video about it? :) |
Hi @icebob , I have sent you mail with screen recording video please check once. |
Hi @icebob , Debugging in depth i found the actual line of code which is causing this problem i think it will help to find out actual error. We are actually using the your kantab project config mixin along with config service, in that config mixin if we comment the events line then this problem is not coming. |
Hmm, it means, the event name contains some prohibited character. Could you print out the |
These are the possible event names form different services From accounts service:
From mail service:
These accounts and mails service is from your repository only. |
I have no idea. Could you create a small reproduce repo? |
Not need it. I can reproduce. |
Released in 0.13.12 |
@icebob is this fix available in 0.14.0 ? |
Hi @icebob , i installed 0.13.12 and it working fine now. |
@roonie007 it's not available it latest beta |
Released in 0.14.0-beta7 |
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Current Behavior
Im using the transporter NATS option by keeping the config as
transporter: "NATS",
But while coding in vscode and hotreloading sometimes NATS server is disconnecting and saying the error asInvalid subject
, but again changing the some code and hot reloading it is reconnecting successfully. Actually this can be ok in development , but we are using docker deployment there is no option for hot-reloading option so that NATS can reconnect again.Expected Behavior
While coding and hot reloading the NATS server should stay connected always.
Failure Information
Please check the image for more error info
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
The text was updated successfully, but these errors were encountered: