Skip to content

{error,{stream_error,{closed,{error,closed}}}} after 200 code #346

@Vkutovoy92

Description

@Vkutovoy92

Hello!
My issue is: after

GunRes = gun:await(ConnPid, StreamRef, ?TIMEOUT),
case GunRes of
    {response, nofin, HttpCode = 200,  _Headers} ->
      case gun:await_body(ConnPid, StreamRef, ?TIMEOUT) of

I get from time to time
{error,{stream_error,{closed,{error,closed}}}}

Options for connecting are:

  Opts = #{
    connect_timeout => 5000,
    http2_opts => #{
      keepalive => 60 * 1000,
      initial_connection_window_size => 65535,
      initial_stream_window_size => 65535
    },
    protocols => [http2],
    retry => 100,
    retry_timeout => 1000 % 1s
  },

Both applications in the same AWS accounts, on the dashboard it looks as

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions