Skip to content

Response has unsupport header throw exception: Failed to parse header value.message #57117

@Nondirectional

Description

@Nondirectional

Question:

image

For this request, I can get the response header and status code information when using JavaScript.

However, when using http to send the request and parse the response, an exception is thrown, and I cannot get any information including the status code and response header except an error message.

Reproducible example:

void main() async {
  final client = HttpClient();
  final request = await client.postUrl(
    Uri.parse('http://memos.w-wbr.space/api/v1/auth/status'),
  );
  final response = await request.close();
  print(response);
}

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-iotriagedIssue has been triaged by sub teamtype-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions