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

Connection closed before full header was received #309

Open
timsneath opened this issue May 15, 2022 · 2 comments
Open

Connection closed before full header was received #309

timsneath opened this issue May 15, 2022 · 2 comments

Comments

@timsneath
Copy link

timsneath commented May 15, 2022

In GitHub.request, the following line can throw an uncaught exception:

    final response = await http.Response.fromStream(streamedResponse);

Ideally this should be handled...

Here's the stack trace:

Connection closed before full header was received
#0      IOClient.send (package:http/src/io_client.dart:66:7)
<asynchronous suspension>
#1      GitHub.request (package:github/src/common/github.dart:400:30)
<asynchronous suspension>
#2      PaginationHelper.fetchStreamed (package:github/src/common/util/pagination.dart:38:20)
<asynchronous suspension>
#3      SearchService.repositories.<anonymous closure> (package:github/src/common/search_service.dart:30:17)
<asynchronous suspension>

This is using github 9.2.0, by the way.

Thanks for your great work!

@github-actions
Copy link

👋 Thanks for reporting! @robrbecker will take a look.

@mosuem
Copy link
Contributor

mosuem commented Dec 18, 2023

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants