Skip to content
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

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

Open
Nondirectional opened this issue Aug 1, 2024 · 0 comments
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@Nondirectional
Copy link

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);
}
@Nondirectional Nondirectional added package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant