-
Notifications
You must be signed in to change notification settings - Fork 38
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
w/ flagd provider: max stream connect attempts and uses 8014 (Port confusion and app crashing) #482
Comments
Hey @agardnerIT, it looks like you're trying to use port 8014 but you should be using 8013. 8014 is the port you would use for scraping metrics. Please update the port and try again. @toddbaert, a connection error shouldn't cause the app to fail. Can you investigate how we can handle this more cleanly? |
This is how it's been built to behave. As the documentation in the config indicates (as well as the error above) by default the provider will attempt to connect 5 times and then error. If the code is written in a way not to handle that error, and it's a runtime that doesn't support uncaught rejected promises, the app will crash. The idea is since flagd is usually local, it should generally be very easy to connect to and therefore we opted for a fail-fast approach. That's why this is the default behavior (it's not the default in flagd-web, which reconnects forever). |
Very strange, rebuilding the app to use Anyway, for now, it's working. I will leave this open until I can retry on win and then close. I've created another issue for docs improvements and (I think) a doc bug I found in operator instructions. |
I'm trying to get a dockerised node app to work with the operator. I don't know where the problem(s) are coming from (or whether I've missed something but my app is crashing and doesn't seem to read the
FeatureFlagConfiguration
CR.I'd be grateful if someone could assist.
Here's what I have so far:
package.json
app.js
Kubernetes YAML
Results
Error Logs
The text was updated successfully, but these errors were encountered: