question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to connect to PirateWeather - CertificateError

See original GitHub issue

When HA starts, I’m getting the following error: 2022-05-27 19:27:28 ERROR (SyncWorker_3) [custom_components.pirateweather.weather] Unable to connect to PirateWeather. HTTPSConnectionPool(host='api.pirateweather.net', port=443): Max retries exceeded with url: /forecast/om3xxPNoEt94XXXXXXXXXXCM78xtHiJ2s5iZsYa/XX.XXX50780789178,-XXX.XXX9254007341?units=us (Caused by SSLError(CertificateError("hostname 'api.pirateweather.net' doesn't match either of 'susi.comcast.net', '*.aws-np.susi.comcast.net', '*.aws-np.susi.xfinity.com', '*.aws.susi.comcast.net', '*.aws.susi.xfinity.com', '*.susi.comcast.net', '*.susi.xfinity.com', 'register-dev.xfinity.com', 'register-ng.xfinity.com', 'register-qa.xfinity.com', 'register-st.be.xfinity.com', 'register-st.xfinity.com', 'register-wg-st.bi.xfinity.com', 'register-wg-st.xfinity.com', 'register-wg.bi.xfinity.com', 'register-wg.xfinity.com', 'register.be.xfinity.com', 'register.xfinity.com'")))

Yet when I visit the URL directly I get valid JSON: https://api.pirateweather.net/forecast/om3xXXXXXXXXXXXXXXXXXn3fCM78xtHiJ2s5iZsYa/XX.XX450780789178,-XXX.XXX29254007341?units=us

(sensitive info redacted)

Running: e95083f HA: 2022.5.5 In Docker; official container

I’m not understanding why it’s trying to compare api.pirateweather.net with a .xfinity.* cert.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xstrexcommented, Jun 18, 2022

So this is a weird one, but it seems to have been an issue with Comcast/Xfinity. I don’t make any configuration change, and it just started working a few days ago.

For anyone else who finds this… My “deal” expired with xfinity (though I still had service), once I got a new “deal” with a better price, the issue seems to of resolved itself, or so it appears. May be completely unrelated, but seems like an odd coincidence.

Component is working great again!

0reactions
alexander0042commented, Jun 22, 2022

Thank you so much for posting the update here! I can’t say enough how much I appreciate it when I’m looking for a solution and someone posted the fix that works for them in the thread, so this is idea (even if it’s still a bit of a mystery).

I’m hoping that it was a fix Comcast rolled out, but either way, good that it’s resolved. If you run into any other issues or have another idea, feel free to open a new issue and we can go from there!

Thanks, Alexander

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using darksky in configuration.yaml still uses api ... - GitHub
"pirateweather" folder is properly named "darksky" in custom_components ... platform: darksky In core logs I get: Unable to connect to Dark Sky.
Read more >
For anyone using the soon to shut down Dark Sky, I've setup a ...
Unable to connect to Dark Sky. HTTPSConnectionPool(host='api.darksky.net', port=443): Max retries exceeded with url: /forecast/<myAPI ...
Read more >
SSL Certificate Error when using an API - Stack Overflow
I cannot access the Darksky API (weather forecast API) from a python script on my home internet while it runs fine on the...
Read more >
Pirate Weather
PirateWeather API. Weather forecasts are primarily determined using models run by government agencies, but the outputs aren't easy to use or in formats ......
Read more >
Making weather forecasts more accessible using serverless ...
I created Pirate Weather, an open weather API, which is built using Amazon ... estimate of precipitation likelihood cannot be calculated.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found