-
Notifications
You must be signed in to change notification settings - Fork 55
Description
I am having trouble connecting to this API. About 40% of the time, it works just fine (I am making a post request with a long linestring, url encoded).
But about 60% of the time, I get this error when making the exact same request:
(getaddrinfo: nodename nor servname provided, or not known (developer.nrel.gov:443))
I have tried from several different wifi networks in different locations and it doesn't appear to be related to any firewall restrictions on my end -- the results are consistently spotty across locations.
Any advice on how I can get a consistent response from the API?
Sanitized, truncated request log below...
I, [2019-05-30T12:12:22.881589 #96234] INFO -- request: POST https://developer.nrel.gov/api/alt-fuel-stations/v1/nearby-route.json?api_key=**MYACTUALAPIKEY**
D, [2019-05-30T12:12:22.882028 #96234] DEBUG -- request: User-Agent: "Faraday v0.15.4"
Content-Type: "application/x-www-form-urlencoded"
D, [2019-05-30T12:12:22.882207 #96234] DEBUG -- request: distance=5&fuel_type=ELEC&route=LINESTRING%28-80.19179+25.761683%2C+-80.191801+25.761682%2C+-80.191955+25.761671%2C+-80.192644+25.761626%2C+-80.193278+25.761585.....