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

cable download error (not support redirect) #2019

Closed
zhanxw opened this issue Jul 28, 2014 · 4 comments
Closed

cable download error (not support redirect) #2019

zhanxw opened this issue Jul 28, 2014 · 4 comments

Comments

@zhanxw
Copy link

zhanxw commented Jul 28, 2014

I notice that cabal does not support redirect:

cabal update
Downloading the latest package list from hackage.haskell.org
Warning: http error: Unable to handle redirect, unsupported scheme:
https://m-proxy4.swmed.edu:10000/mwg-internal/de5fs23hu73ds/plugin?target=Auth&reason=Auth&ClientID=1513153200&ttl=43200&url=aHR0cDovL2hhY2thZ2UuaGFza2VsbC5vcmcvcGFja2FnZXMvYXJjaGl2ZS8wMC1pbmRleC50YXIuZ3o=&rnd=1406568676
cabal: Failed to download
http://hackage.haskell.org/packages/archive/00-index.tar.gz : ErrorMisc "Error
HTTP code: 302"

I have set up $proxy_http correctly. The university proxy does not require authentication.
It seems cabal does not support HTTP redirect. Is there a way to solve this problem?

@23Skidoo
Copy link
Member

Looks like a bug in the HTTP library. Can you please open a ticket on their bug tracker?

@zhanxw
Copy link
Author

zhanxw commented Jul 29, 2014

Opened a ticket for HTTP library.
haskell/HTTP#70
Thanks.

@hsenag
Copy link
Member

hsenag commented Jul 29, 2014

Just to note here that this is (probably) because the redirect is to an https site, which is not supported by the HTTP library - see haskell/HTTP#17.

@zhanxw
Copy link
Author

zhanxw commented Jul 29, 2014

Thanks. I agree that's the reason.

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

3 participants