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

Busca IE no AM #87

Open
mileo opened this issue Dec 11, 2024 · 0 comments
Open

Busca IE no AM #87

mileo opened this issue Dec 11, 2024 · 0 comments

Comments

@mileo
Copy link
Member

mileo commented Dec 11, 2024

  File "/opt/odoo/auto/addons/l10n_br_cnpj_search/wizard/partner_cnpj_search_wizard.py", line 82, in default_get
    values = self._get_partner_values(cnpj_cpf)
  File "/opt/odoo/auto/addons/l10n_br_ie_search/wizard/extend_partner_cnpj_search_wizard.py", line 49, in _get_partner_values
    ie_values = self._get_partner_ie(state_code=state_id.code, cnpj=cnpj_cpf)
  File "/opt/odoo/auto/addons/l10n_br_ie_search/wizard/extend_partner_cnpj_search_wizard.py", line 23, in _get_partner_ie
    response = webservice.sefaz_search(state_code, cnpj, processo)
  File "/opt/odoo/auto/addons/l10n_br_ie_search/models/sefaz_webservice.py", line 39, in sefaz_search
    response = processador.consultar_cadastro(uf, int(punctuation_rm(cnpj)))
  File "/usr/local/lib/python3.8/site-packages/erpbrasil/edoc/nfe.py", line 1090, in consultar_cadastro
    return self._post(
  File "/usr/local/lib/python3.8/site-packages/erpbrasil/edoc/edoc.py", line 68, in _post
    with self._transmissao.cliente(url):
  File "/usr/local/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.8/site-packages/erpbrasil/transmissao/transmissao.py", line 77, in cliente
    self._cliente = Client(
  File "/usr/local/lib/python3.8/site-packages/zeep/client.py", line 76, in __init__
    self.wsdl = Document(wsdl, self.transport, settings=self.settings)
  File "/usr/local/lib/python3.8/site-packages/zeep/wsdl/wsdl.py", line 86, in __init__
    self.load(location)
  File "/usr/local/lib/python3.8/site-packages/zeep/wsdl/wsdl.py", line 89, in load
    document = self._get_xml_document(location)
  File "/usr/local/lib/python3.8/site-packages/zeep/wsdl/wsdl.py", line 149, in _get_xml_document
    return load_external(
  File "/usr/local/lib/python3.8/site-packages/zeep/loader.py", line 89, in load_external
    content = transport.load(url)
  File "/usr/local/lib/python3.8/site-packages/zeep/transports.py", line 122, in load
    content = self._load_remote_data(url)
  File "/usr/local/lib/python3.8/site-packages/zeep/transports.py", line 136, in _load_remote_data
    response.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 652, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/auto/addons/odoo_elasticapm/http.py", line 31, in _handle_exception
    return super_handle_exception(self, exception, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2?wsdl
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

1 participant