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

ConnectionTimeout with "req" even though "curl" and browser work just fine #110

Closed
cideM opened this issue Nov 3, 2020 · 1 comment
Closed

Comments

@cideM
Copy link

cideM commented Nov 3, 2020

Hi,

maybe I'm doing something wrong but in this example repo I prepared the request I'm making in main fails with a ConnectionTimeout error even though it works with any other program, language and CLI tool. Reproducing it should be fairly issue with the instructions from the README

Further information:

  • Works on MacOS and Arch with the instructions from the README
  • Fails on NixOS
  • Doesn't work with wreq and http-conduit either, always the same error
  • Works with some URLs though

This does not work

Prelude Control.Lens Network.Wreq> r <- get "https://www.google.com"

This works

Prelude Control.Lens Network.Wreq> opts = defaults & param "q" .~ ["tetris"] & param "language" .~ ["haskell"]
Prelude Control.Lens Network.Wreq> r <- getWith opts "https://api.github.com/search/repositories"
@cideM cideM changed the title ConnectionTimeout with req even though curl and browser work just fine ConnectionTimeout with "req" even though "curl" and browser work just fine Nov 3, 2020
@cideM
Copy link
Author

cideM commented Nov 4, 2020

Problem went away from one program run to the next. I'll report back with some network debug info when it inevitably comes back

@cideM cideM closed this as completed Nov 4, 2020
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