-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import_br.py
works locally, but fails in Github Actions
#176
Labels
Comments
The IBGE data is needed because the SIORG API, which returns Brazilian Federal Government public bodies information, provides an address but uses only municipality codes, not municipality names. So if we are going to use option 3 we need to cache somehow (perhaps a small csv in this repository) a mapping of municipality codes to names. |
Perhaps this csv could be fetched from Github and used instead. |
augusto-herrmann
added a commit
that referenced
this issue
May 29, 2023
augusto-herrmann
added a commit
that referenced
this issue
May 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Job "Update data from sources (br)" fails with the following error:
The script works locally, though. Also if one is to run the following code locally, the download from ibge.gov.br will proceed normally, without raising an exception:
It seems like it's common for the Github Actions environment to give SSL errors when connecting to government websites, as evidenced by these Stack Overflow questions:
From there, we could:
CustomHttpAdapter
workaround from Stack Overflow; orwget
; orFor now, I'm pending towards solution 3, since the list of municipalities in Brazil does not update that often.
The text was updated successfully, but these errors were encountered: