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 error: COMPRESSION_ERROR #275

Closed
elpaxel opened this issue Aug 27, 2023 · 6 comments
Closed

connection error: COMPRESSION_ERROR #275

elpaxel opened this issue Aug 27, 2023 · 6 comments

Comments

@elpaxel
Copy link

elpaxel commented Aug 27, 2023

When I'm using "ImpersonateChrome" request fails with "connection error: COMPRESSION_ERROR".
Only on this url: https://httpbingo.org/anything
Without "ImpersonateChrome" request is working fine.

go 1.20
req 3.41.7

package main

import (
    "fmt"
    "log"
    
    "github.com/imroc/req/v3"
)

func main(){
    client := req.C().ImpersonateChrome()
    
    resp, err := client.R().Get("https://httpbingo.org/anything")
    
    if err != nil {
        log.Fatal(err)
    }
    
    fmt.Println(resp.String())
}
@elpaxel
Copy link
Author

elpaxel commented Aug 28, 2023

ImpersonateChrome - COMPRESSION_ERROR
ImpersonateFirefox - COMPRESSION_ERROR
ImpersonateSafari - works

@imroc
Copy link
Owner

imroc commented Aug 28, 2023

Nice catch! It's been fixed in the latest version, try it.

@elpaxel
Copy link
Author

elpaxel commented Aug 28, 2023

Yep. Now this url is working: https://httpbingo.org/anything
But this url: https://9gag.com gives "connection error: FLOW_CONTROL_ERROR"
But it is working fine in 3.41.7-3.41.8

@imroc
Copy link
Owner

imroc commented Aug 28, 2023

That's wired, will take some time to deep dive.

@imroc
Copy link
Owner

imroc commented Aug 31, 2023

@elpaxel FLOW_CONTROL_ERROR has been fixed in the latest version

@elpaxel
Copy link
Author

elpaxel commented Aug 31, 2023

Thank you. Now everything works.

@elpaxel elpaxel closed this as completed Aug 31, 2023
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