Closed nineonine closed 8 years ago
this is definitely something discogs specific and not related to this library. closing it
I tried it with Wreq and got the same Exception
*** Exception: TlsExceptionHostPort (HandshakeFailed (Error_Protocol ("expecting server hello, got alert : [(AlertLevel_Fatal,HandshakeFailure)]",True,HandshakeFailure))) "api.discogs.com" 443
_Interesting to notice: _
I got that Exception first time I tried to do authorised request (passing token as Url param) however doing unauthorized requests was possible ! (and I used defaultManagerSettings
for that, not tlsManagerSettings
. After I updated http-client, http-client-tls, tls
, it became impossible to request anything (using defaultManagerSettings stopped working as well).
should I address this issue in tls
library ? maybe @vincenthz could help ? ^_^
might be helpful : https://www.ssllabs.com/ssltest/analyze.html?d=discogs.com&latest
all good now . This was my first experience with cabal hell :)
@nineonine What what the issue... think I'm in that same cabal hell now
@eikeon in my case this scenario worked
ghc-pkg list
There were 2 versions of tls listed there. I unregistered the older package doing
ghc-pkg unregister --force <necessary package>
@nineonine Thank you. ( In my case it looks like I need to install an older version for now: https://github.com/vincenthz/hs-tls/issues/145#issuecomment-218035708 )
Im trying to establish secured connection with https://www.discogs.com
here is my code
then I'm testing it in ghci and getting an error
according to discogs.com API documentation, I can send token either in URL params or in headers - i tried both - nothing worked.
Then I googled that issue related to some troubles with tls package. However, after that I used some tls debugging tools (tls-simpleclient from hs-tls) and I had no problems establishing connection with the host.
I tried everything - I updated all the necessary packages and nothing helped.
There was the same issue but , it was openSSL related and according to that thread Discogs switched to tls completely.
Am I doing something wrong ?
thanks