-
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
Add support for additional endpoints #68
Comments
Thanks for catching this. PHP uses different endpoints than all of the other SDKs, because of HTTP caching considerations, and we failed to notice that we hadn't implemented those endpoints in ld-relay because all of our current PHP-using customers (as far as we knew) were using Redis. This will be added in the next |
I just tried a build with version 5.6.1 and it still behaves the same way, returning a 404 when accessing |
Sorry, I should have said "the next |
This is implemented in the 5.7.0 release. |
These urls are passed directly to the go client which expects them not to have a trailing slash.
Currently some endpoints return an HTTP 404 from the
ld-relay
host. This is problematic if runningld-relay
in relay proxy mode. Switching to daemon mode can alleviate this in some cases, but adds a dependency on Redis to application code. The alternative is adding logic to the application to make some requests through the relay and others directly to the LaunchDarkly service.Example request:
This adds a couple of entries to the logs and comes back with no flags.
Looking in the PHP SDK code to see what URL is being requested shows
/sdk/flags
. Making that request viacurl
directly to theld-relay
host confirms what the logging stated before, a missing endpoint.The same request on the LaunchDarkly app host
app.launchdarkly.com
returns a JSON blob of current flag data; as expected. Ideally, the request would be answered with the state already stored inld-relay
and transparently proxied through to LaunchDarkly in the event the flag state isn't currently in memory.The text was updated successfully, but these errors were encountered: