-
Notifications
You must be signed in to change notification settings - Fork 27
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
When to initialized the library #46
Comments
There are different things at play here about the initialization orders. I will try to be exhaustive and any help on this is much appreciated.
I am not completely happy with all of this and any way to improve is welcomed. |
Interesting, I'll give it a thought. I did debugged portfinder when I had this issue and noticed that it fails to bind on port the should be available and so on with the next ports, without success. that's probably because the network was somehow not ready yet as you mentioned. |
I've just added a tips section in docs so I propose to close this issue, please reopen for anything that looks like a bug. |
It is unclear when the feathers-distributed library should be initialized. the docs suggest to do that after
app(hooks)
. does it means that it must be initialized after initializing all the services?I've tried initializing at the end of the bootstrap and had no issues. Then I've tried initializing it before the services and before the authentication service initialization and got this error due to issue with the authentication service publishing:
After some debugging, it seems that the server was trying to connect to host with port
null
.The text was updated successfully, but these errors were encountered: