Skip to content
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

Fix json decode error (http > https) #49

Merged
merged 2 commits into from
Mar 21, 2025

Conversation

renanmoretto
Copy link
Collaborator

A url (http) antiga do BCB-SGS não funciona mais. Mudaram para https.

Por exemplo, funciona:
https://api.bcb.gov.br/dados/serie/bcdata.sgs.20542/dados?formato=json

Não funciona:
http://api.bcb.gov.br/dados/serie/bcdata.sgs.20542/dados?formato=json

Fiz a alteração para https e arrumei um test que estava desatualizado.

@masaez
Copy link

masaez commented Mar 7, 2025

I also verified what renan is suggesting.

@renanmoretto
Copy link
Collaborator Author

@rafpyprog conseguiu dar uma olhada aqui? a lib não funciona sem esse fix

@bferrari-absolute
Copy link

Mesmo problema por aqui... com https o pacote voltou a funcionar

@LorhanSohaky
Copy link
Collaborator

@rafpyprog , can review?

@renanmoretto
Copy link
Collaborator Author

since this library is abandoned, i created a new one — simpler (less than 300 LOC in a single file) and with some improvements. in case anyone’s interested: https://github.com/renanmoretto/sgs2

@rafpyprog
Copy link
Owner

Código adicionado!

@rafpyprog rafpyprog merged commit 14e110f into rafpyprog:master Mar 21, 2025
0 of 4 checks passed
@rafpyprog
Copy link
Owner

@LorhanSohaky @renanmoretto
Versão 3.0.0 publicada no Pypi com as alterações

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants