You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the client is running in polling mode and any of the HTTP responses from Launch Darkly contain invalid UTF-8 characters it will throw an exception and return the default value for the variation. In our specific case it's a custom key containing a customer name with "\xE2\x80\x99" (apostrophe) in it somewhere.
Apparently this is a Faraday HTTP cache problem and it was previously mentioned in a PR: #51 (comment)
Our current workaround is to set the serializer to Marshal:
require 'ldclient-rb/requestor'
module LaunchDarkly
class Requestor
def initialize(sdk_key, config)
@sdk_key = sdk_key
@config = config
@client = Faraday.new do |builder|
builder.use :http_cache, store: @config.cache_store, serializer: Marshal
builder.adapter :net_http_persistent
end
end
end
end
This problem exists in 2.2.7.
The text was updated successfully, but these errors were encountered:
Sorry this fell through the cracks. I'm guessing that we haven't heard about it since then because most people are now using streaming mode, but I verified that we do still have this bug in polling mode. The proposed fix does seem effective, but we're still looking at whether it's the right way to go. But in any case we will be rolling out some fix as soon as possible.
When the client is running in polling mode and any of the HTTP responses from Launch Darkly contain invalid UTF-8 characters it will throw an exception and return the default value for the variation. In our specific case it's a custom key containing a customer name with "\xE2\x80\x99" (apostrophe) in it somewhere.
Apparently this is a Faraday HTTP cache problem and it was previously mentioned in a PR:
#51 (comment)
Our current workaround is to set the serializer to Marshal:
This problem exists in
2.2.7
.The text was updated successfully, but these errors were encountered: