-
Notifications
You must be signed in to change notification settings - Fork 82
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
Bulk endpoint failing with 503 #474
Comments
Hi there 👋🏼 , happy to help with this issue.
The relay proxy has a middleware for logging information each time one of its own endpoints are accessed. So in this case, some external SDK is hitting the relay proxy's The most likely reason the relay proxy would return a
You can learn more about analytic events and how they are used here.
Please let me know if you are continuing to experience this issue. |
Yes, the key is the same for SDK and relay 🤔
Oh so this would explain why we do not see "evaluations" in the app UI when enabling relay?
We do :/ is there supposed to be some other logs that show the endpoints being called for flag evaluations? In debug we only see "status" (200) and "bulk" (503) calls. |
Can you provide your relay config (with any key information redacted of course), and examples of how you're configuring the SDKs themselves (also being sure to redact SDKs there as well)?
Yes, that's right. Those events are how LD services receive feedback about the SDK evaluation usage.
The individual SDKs have logging configurations which should include some information about what they are sending, and when they are failing. I would suggest looking at those. Also, if you try to hit the
That may provide some additional information as well. |
Ok, finally starting to make sense.
So I was able to quickly run this and
Then I have set the Will check if now everything works correctly in both environment. |
I think we can close here, Relay seems to be working on both environments 🎊 Just a though: maybe it could be useful to add to docs that to debug you can call the endpoint failing to get more info. |
Is this a support request?
It seems more of a bug or unclear behavior
Describe the bug
Our relay installed via latest helm chart,
in debug mode shows constantly lines like
DEBUG: Request: method=POST url=/bulk auth=*321cf status=503 bytes=61"
But our apps can reach it,
and debugging via https://support.launchdarkly.com/hc/en-us/articles/18239626123547-Troubleshooting-SDK-connection-to-Relay we were able to get flags correctly from related pods
To reproduce
Run ld-relay with no changes to default values in helm chart
Expected behavior
Not seeing errors, or understand what this error means, as there is no explanation anywhere in this repo or in the docs.
Logs
Just that single line above, many times per minute
Relay Version(s)
8.10.5
SDK Names and Version(s)
Golang - but also Curl works
OS/platform
Kubernetes, pod runs your docker image.
Our apps run on latest ubuntu.
Additional context
Looking at the https://github.com/launchdarkly/ld-relay/blob/v8/docs/endpoints.md
/bulk says "Receives analytics events from SDKs"
What does this exactly mean?
To allow https://docs.launchdarkly.com/home/observability/live-events to work?
I tried using env "USE_EVENTS" set to false but nothing changed.
The text was updated successfully, but these errors were encountered: