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

Need support to enforce HTTP/1.1 API call in http component in benthos #117

Open
jeetvachhani285 opened this issue Oct 25, 2024 · 0 comments

Comments

@jeetvachhani285
Copy link

While I am calling API using http component i am getting stream error: stream ID 6107; HTTP_1_1_REQUIRED; received from peer error in benthos.

It will be working fine if there is an intermediary, such as a proxy, firewall, or security software (e.g., Netskope). It might be possible because it will be enforcing or preferring HTTP/1.1 over HTTP/2 but without that it throws error.

Config file:

http:
    url: https://<cloud-instance>/BeyondTrust/api/public/v3/Auth/SignAppIn
    verb: POST
    rate_limit: api_ratelimit
    timeout: 45s
    extract_headers:
      include_prefixes:
        - set-cookie

Here you can see the error which i am getting.

level=error msg="Failed to call SignIn API due to https://<cloud-instance>/BeyondTrust/api/public/v3/Auth/SignAppIn: Post \"https://<cloud-instance>/BeyondTrust/api/public/v3/Auth/SignAppIn\": Post \"https://<cloud-instance>/BeyondTrust/api/public/v3/Auth/Connect/Token\": stream error: stream ID 521347; HTTP_1_1_REQUIRED; received from peer" @service=benthos label="" path=root.input.broker.inputs.0.processors.3.switch.processors.2.catch.0

So is there any way to by which we can enforce HTTP/1.1 for API call may be by adding some an advanced flag for this in benthos?

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

1 participant