-
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
Encoding issue with old backup file #214
Comments
@marocchino Thanks for raising this, I'll take a look |
Hey @marocchino, I can't seem to reproduce this and I think there's something strange going on with the trace you've posted. That error in the client isn't from loading the backup, it's from creating the backup from the response from upstream. Based on the warning there, it looks like the SDK is struggling to talk to upstream. Is there a proxy in between Unleash and the SDK? Is the connection actually healthy? This is also a bit of a surprise because the backup code and the HTTP code hasn't changed significantly from the 5.x range. But what looks to be happening is some very odd 200 ASCII encoded response is being returned from the server and that's causing the SDK to wipe its internal cache. Would you be able to post a response from cURL from whereever the SDK is running to your Unleash server? And maybe the content of your backup file as well, if possible. I know I'm asking for a lot here but it's worth a shot! |
You need utf-8 characters in backup json. |
Yes, tried that, still can't reproduce it. But I see you have a PR open and it makes sense, I'll merge that, thank you |
@marocchino Thanks for the report and the fix! 6.0.9 is out which contains your patch |
Describe the bug
There have been reports that encoding errors occur after a major version upgrade if there is a backup from a previous version. When this symptom is present, get variant always returns with disabled.
Steps to reproduce the bug
Expected behavior
no error
Logs, error output, etc.
Screenshots
No response
Additional context
No response
Unleash version
No response
Subscription type
Pro
Hosting type
Hosted by Unleash
SDK information (language and version)
ruby 6.0.8
The text was updated successfully, but these errors were encountered: