ERROR:root:error while consuming ws messages


I’m running alpaca with pylivetrader and am getting this error:
ERROR:root:error while consuming ws messages: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

Does anybody know what the problem and/or solution are?

your ssl installation might be a bit old. One quick google search of your error seems to tell me it is you ssl installation that is the problem. check this out

Found this helpful solution by hlchan-sg

  1. go to
  2. key this in the server address:
  3. look at the immediate subject cert, these are the certs required to make things work
  4. Download the cert at letsencrypt (dot) org/certs/lets-encrypt-r3.pem
  5. in windows type run certmgr
  6. under trusted root certification, right click import the downloaded file

Original Post: issueexplorer (dot) com/issue/alpacahq/alpaca-trade-api-python/510