Closed augusto-herrmann closed 1 year ago
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.
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.