Skip to content

Invalid header field name, with 44 #460

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

Open
cdzc opened this issue Aug 14, 2020 · 2 comments
Open

Invalid header field name, with 44 #460

cdzc opened this issue Aug 14, 2020 · 2 comments

Comments

@cdzc
Copy link

cdzc commented Aug 14, 2020

I report this exception when I use the following request:

final http.Response response = await http.get(
  url,
  headers: <String,String>{
    HttpHeaders.contentTypeHeader: 'application/json; charset=UTF-8',
    HttpHeaders.authorizationHeader:"Bearer " + token,
   },
);
print('response=' + response.body);

[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Invalid header field name, with 44
#0 IOClient.send (package:http/src/io_client.dart:62:7)

#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:91:38)
#2 BaseClient.get (package:http/src/base_client.dart:27:7)
#3 get. (package:http/http.dart:46:36)

@valehasadli
Copy link

Hi @ZXY888, please check this issue

Please, share more related code statements.

@brianquinlan brianquinlan added the needs-info Additional information needed from the issue author label Jan 13, 2024
@brianquinlan
Copy link
Collaborator

There is not enough context to debug this. Could you provide a complete reproduction example.

@github-actions github-actions bot removed the needs-info Additional information needed from the issue author label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants