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.

SSL issues with Leap_Second.dat source

See original GitHub issue

Python Version: 3.7.3 OS: Mac OS Catalina version 10.15.2 SkyField version: 1.16

The automation which which attempts to fetch leap second information from the International Earth rotation and Reference Systems Service is running into certificate problems. Note this only happens when the Leap_Second.dat file is not cached locally.

OSError: cannot get https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat because <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>

The problem is not with the Paris Observatory website but in Python 3.7 specifically with how urlib2.urlopen() accesses some https sites. For what it is worth, requests.get() fetches this URL (https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat) without any problem.

A workaround is to manually fetch the file and save it locally.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brandon-rhodescommented, Apr 20, 2020

@richf27 Try load.timescale(builtin=True), if you aren’t worried about leap-second-level accuracy in the future — would that get your script working again?

Also: you simply download files to the current directly unless you’ve created a loader that uses some other directly. Where in the docs could I make that clearer so that users know where to put the file? Can you point me at which docs you were following when you ran into the problem? Thanks!

1reaction
Mausy5043commented, Jan 25, 2020

I have the same issue with Python 3.6.6 on macOS.

No problems with Python 3.7.3 on Debian buster.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Status - FreeBSD Bugzilla
I booted up a test VM I have that hasn't been started for a while. The console logged this: Oct 13 08:36:25 devbox...
Read more >
Resolve Leap Second Issues in Red Hat Enterprise Linux
The 2015 Leap Second issue could affect Red Hat Enterprise Linux. Get information on what the leap second bug is and how it...
Read more >
Akamai Blog | Planning for the End of 2016: A Leap Second ...
A leap second and the final end of browser support for SHA-1 TLS certificates will happen and can potentially break software systems and ......
Read more >
Leap second tests fail if system clock is in the future (2021-06 ...
Description As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future....
Read more >
Don't Let a Leap Second Leap on Your Database! - Percona
This blog discusses how to prepare your database for the new leap second coming in the new year.
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