-
Notifications
You must be signed in to change notification settings - Fork 17
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
🐛 Bug Report: FormatException: Invalid HTTP header field value #74
Comments
@Evgentret From the error, it seems like you are passing invalid characters in your Can you please the snippet of the code that is leading to this error? Also can you confirm if switching the language to English makes it work? |
This is code snippet that raise error:
That's all. This code work well on previous dart version. I didn't set any headers (I think that SDK don't allowed it), I can't switch language. I just run the code as I ran it before Dart upgrade |
@Evgentret thanks for sharing this! since the issue arised after updating of dart and not the sdk, can you confirm if downgrading the dart version fixes it? |
Yes. Right now I clone flutter 3.27.3, herer is: PS C:\flutter> flutter doctor -v All working best. Sorry, I don't know how to show you this, because just no errors and code works as it should |
And come back again: PS C:\flutter> flutter doctor -v : AppwriteException: , FormatException: Invalid HTTP header field value: "AppwriteDartSDK/13.0.0 (windows; "Майкрософт Windows 10 Домашняя для одного языка" 10.0 (Build 19045))" (at character 35) So, issue only with new dart version |
@Evgentret Thanks for sharing this! I have raised the issue to the internal team to look into it further |
@Evgentret in the meanwhile while we look into it, a fix i can suggest for now would be to manually set the user-agent field using |
What's |
windows |
👟 Reproduction steps
After updating to Dart 3.7 had error with database.listDocuments, running as console app
👍 Expected behavior
Get a valid response as I did yesterday (Same code on previous version of Dart works fine)
👎 Actual Behavior
"FormatException: Invalid HTTP header field value: "AppwriteDartSDK/13.0.0 (windows; "Майкрософт Windows 10 Домашняя для одного языка" 10.0 (Build 19045))" (at character 35)"
AppwriteDartSDK/13.0.0 (windows; "Майкрософт Windows 10 Домашняя для одного...
^
🎲 Appwrite version
Different version (specify in environment)
💻 Operating system
Windows
🧱 Your Environment
Appwrite version 1.6.0 on self-hosted Linux VPS, dart_appwrite: 13.0.0
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: