Invalid header field name, with 44
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.1k
- Forks
- 419
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 8
Description
I report this exception when I use the following request:
final http.Response response = await http.get(
url,
headers: {
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at package:http/src/io_client.dart:62, then follow BaseClient._sendUnstreamed and BaseClient.get using the request shown in the report. Reproduce the exception and determine which header value triggers it; done means the cause and an appropriate fix or validation behavior are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100