You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versão 12 Trustcode.
Se faltar alguma informação, por favor me avise.
O erro acontece quando do envio da NFC-e:
Primeiro fiz o teste para "NF-e" - Funcionou perfeitamente.
Para testar a NFC-e tive que incluir os servidores da Sefaz-MG nos arquivos Servidores.py e urls.py.
O processo corre normal até a validação:
Validado:
Ao enviar:
Traceback:
2019-12-30 16:22:47,258 5119 ERROR odoo12 odoo.addons.br_account_einvoice.models.invoice_eletronic: Erro no envio de documento eletrônico
Traceback (most recent call last):
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/loader.py", line 54, in parse_xml
forbid_entities=settings.forbid_entities,
File "/home/yota/veodoo/lib/python3.6/site-packages/defusedxml/lxml.py", line 145, in fromstring
rootelement = _etree.fromstring(text, parser, base_url=base_url)
File "src/lxml/etree.pyx", line 3236, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1876, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1764, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc
File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
File "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4", line 27
lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 27, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/yota/veodoo/odoo/local/trustcode/odoo-brasil/br_account_einvoice/models/invoice_eletronic.py", line 512, in cron_send_nfe
item.action_send_eletronic_invoice()
File "/home/yota/veodoo/odoo/local/trustcode/odoo-brasil/br_nfe/models/invoice_eletronic.py", line 947, in action_send_eletronic_invoice
modelo=self.model)
File "/home/yota/veodoo/lib/python3.6/site-packages/pytrustnfe/nfe/init.py", line 128, in autorizar_nfe
return _send(certificado, 'NfeAutorizacao', **kwargs)
File "/home/yota/veodoo/lib/python3.6/site-packages/pytrustnfe/nfe/init.py", line 97, in _send
first_op, client = _get_client(base_url, transport)
File "/home/yota/veodoo/lib/python3.6/site-packages/pytrustnfe/nfe/init.py", line 81, in _get_client
client = Client(base_url, transport=transport)
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/client.py", line 68, in init
self.wsdl = Document(wsdl, self.transport, settings=self.settings)
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/wsdl/wsdl.py", line 80, in init
document = self._get_xml_document(location)
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/wsdl/wsdl.py", line 143, in _get_xml_document
location, self.transport, self.location, settings=self.settings
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/loader.py", line 79, in load_external
return parse_xml(content, transport, base_url, settings=settings)
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/loader.py", line 58, in parse_xml
"Invalid XML content received (%s)" % exc.msg, content=content
zeep.exceptions.XMLSyntaxError: Invalid XML content received (Extra content at the end of the document, line 27, column 1)
2019-12-30 16:22:47,293 5119 INFO odoo12 werkzeug: 127.0.0.1 - - [30/Dec/2019 16:22:47] "POST /longpolling/poll HTTP/1.1" 200 - 12 0.010 0.463
The text was updated successfully, but these errors were encountered:
Olá Raphael, Boa tarde
Versão 12 Trustcode.
Se faltar alguma informação, por favor me avise.
O erro acontece quando do envio da NFC-e:
Primeiro fiz o teste para "NF-e" - Funcionou perfeitamente.
Para testar a NFC-e tive que incluir os servidores da Sefaz-MG nos arquivos Servidores.py e urls.py.
O processo corre normal até a validação:
Validado:
Ao enviar:
Traceback:
2019-12-30 16:22:47,258 5119 ERROR odoo12 odoo.addons.br_account_einvoice.models.invoice_eletronic: Erro no envio de documento eletrônico
Traceback (most recent call last):
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/loader.py", line 54, in parse_xml
forbid_entities=settings.forbid_entities,
File "/home/yota/veodoo/lib/python3.6/site-packages/defusedxml/lxml.py", line 145, in fromstring
rootelement = _etree.fromstring(text, parser, base_url=base_url)
File "src/lxml/etree.pyx", line 3236, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1876, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1764, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc
File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
File "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4", line 27
lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 27, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/yota/veodoo/odoo/local/trustcode/odoo-brasil/br_account_einvoice/models/invoice_eletronic.py", line 512, in cron_send_nfe
item.action_send_eletronic_invoice()
File "/home/yota/veodoo/odoo/local/trustcode/odoo-brasil/br_nfe/models/invoice_eletronic.py", line 947, in action_send_eletronic_invoice
modelo=self.model)
File "/home/yota/veodoo/lib/python3.6/site-packages/pytrustnfe/nfe/init.py", line 128, in autorizar_nfe
return _send(certificado, 'NfeAutorizacao', **kwargs)
File "/home/yota/veodoo/lib/python3.6/site-packages/pytrustnfe/nfe/init.py", line 97, in _send
first_op, client = _get_client(base_url, transport)
File "/home/yota/veodoo/lib/python3.6/site-packages/pytrustnfe/nfe/init.py", line 81, in _get_client
client = Client(base_url, transport=transport)
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/client.py", line 68, in init
self.wsdl = Document(wsdl, self.transport, settings=self.settings)
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/wsdl/wsdl.py", line 80, in init
document = self._get_xml_document(location)
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/wsdl/wsdl.py", line 143, in _get_xml_document
location, self.transport, self.location, settings=self.settings
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/loader.py", line 79, in load_external
return parse_xml(content, transport, base_url, settings=settings)
File "/home/yota/veodoo/lib/python3.6/site-packages/zeep/loader.py", line 58, in parse_xml
"Invalid XML content received (%s)" % exc.msg, content=content
zeep.exceptions.XMLSyntaxError: Invalid XML content received (Extra content at the end of the document, line 27, column 1)
2019-12-30 16:22:47,293 5119 INFO odoo12 werkzeug: 127.0.0.1 - - [30/Dec/2019 16:22:47] "POST /longpolling/poll HTTP/1.1" 200 - 12 0.010 0.463
The text was updated successfully, but these errors were encountered: