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

RetryError: ERR_HTTP2_GOAWAY_SESSION #116

Open
lewisl9029 opened this issue Dec 1, 2021 · 1 comment
Open

RetryError: ERR_HTTP2_GOAWAY_SESSION #116

lewisl9029 opened this issue Dec 1, 2021 · 1 comment

Comments

@lewisl9029
Copy link

Hi there! Coming from node-fetch for the h2 support. Everything looked great when I first made the swap, but I just noticed that if I leave the app open for a while, subsequent requests will all end up getting this error:

    err: {
      "type": "RetryError",
      "message": "ERR_HTTP2_GOAWAY_SESSION",
      "stack":
          Error: ERR_HTTP2_GOAWAY_SESSION
              at doFetch (C:\Users\Lewis\Develop\reflame\code\agent\node_modules\fetch-h2\dist\lib\fetch-http2.js:56:23)
    }

The only way to recover I've found was to restart the app, which is obviously not great. 😅

I followed the error trace to this line:

if ( err.code === "ERR_HTTP2_GOAWAY_SESSION" )

The comment above says // Retry with new session, but the code itself just throws. Maybe the retry behavior hasn't been implemented yet?

@grantila
Copy link
Owner

Interesting, it is implemented, but perhaps it retries over the same session which is what the server doesn't want.

Will look into this.

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

2 participants