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

pynubank.exception.NuRequestException: The request made failed with HTTP status code 401 [POR FAVOR NÃO FECHA ESSE ISSUE] #456

Closed
TuttaDaWeb opened this issue Jul 26, 2024 · 2 comments

Comments

@TuttaDaWeb
Copy link

Eu estou tendo um problema com o requests do pynubank, eu até fiz um issue mas o criador dessa pequena biblioteca fechou me comentário mas ele comentou sobre outro issue, no caso, isseu #419, mas eu, particular mente não estou consegui achar uma solução naquele issue. alguém pode achar para mim
o erro é esse:Traceback (most recent call last):
File "C:\Users\arthu\OneDrive\Documentos\Projeto PyNubank\app.py", line 6, in
teste = nu.get_account_balance()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Lib\site-packages\pynubank\auth_mode.py", line 23, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Lib\site-packages\pynubank\nubank.py", line 235, in get_account_balance
data = self._make_graphql_request('account_balance')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Lib\site-packages\pynubank\nubank.py", line 52, in _make_graphql_request
return self._client.post(self._query_url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Lib\site-packages\pynubank\utils\http.py", line 49, in post
return self._handle_response(post(url, json=json, headers=self._headers, **self._cert_args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Lib\site-packages\pynubank\utils\http.py", line 35, in _handle_response
raise NuRequestException(response)
pynubank.exception.NuRequestException: The request made failed with HTTP status code 401

POR FAVOR, NÃO FECHA ESSE ISSUE, E ME AJUDA A RESOLVER. É QUE EU NÃO CONSEGUI ACHAR NADA NO ISSUE #419 PARA RESOLVER ESSE PROBLEMA. PFV, ME AJUDA

@andreroggeri
Copy link
Owner

#419 ainda está aberta.
Para acessar os dados da Nuconta só é possível se você extrair o certificado do telefone (Pq precisa da verificação facial)

@TuttaDaWeb
Copy link
Author

TuttaDaWeb commented Jul 26, 2024

COMO ASSIM?
extrair o certificado pelo telefone?

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

No branches or pull requests

2 participants