Code Monkey home page Code Monkey logo

Comments (2)

bdowling avatar bdowling commented on July 21, 2024

This particular issue may be an odd issue on my dev system. I identified that I can make polygon requests from a web browser to the API, but from this particular opensuse dev system the request hang, even with wget/curl. Hard to debug exactly what is happening with the SSL, not sure if it is SSL related.

(edited) So this is odd, why am I seeing a self-signed cert from linux, but not in a chrome browser?

$ openssl s_client -quiet -host api.polygon.io -port 443
depth=0 O = Acme Co, CN = Kubernetes Ingress Controller Fake Certificate
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 O = Acme Co, CN = Kubernetes Ingress Controller Fake Certificate
verify error:num=21:unable to verify the first certificate
verify return:1
GET /v1/historic/quotes/AAPL/2018-2-2?apiKey=XXX HTTP/1.1
Host: api.polygon.io

^C

Above appears to hang when I specify my API key, but does return Invalid / Missing if I specify the wrong one. Also fails to return even if I add a limit=10.

from alpaca-trade-api-python.

bdowling avatar bdowling commented on July 21, 2024

I'm closing this. It appears the dev system I was having problems with will not connect with TLSv1.2 properly, which the polygon API appears to require. Additionally, -servername api.polygon.io is required for the s_client test to support the SNI of your frontend.

from alpaca-trade-api-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.