Error al firmar

Asked by Antonio Hernández on 2014-06-18

Hola a todos.

Primero que nada, muchas gracias por este desarrollo tan completo de openerp.

Les comento que al momento de firmar el XML, tanto con datos prueba del PAC, como con datos reales me arroja el siguiente error:

Client Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1139, in exec_workflow
    return req.session.exec_workflow(model, id, signal)
  File "/opt/openerp/server/openerp/addons/web/session.py", line 147, in exec_workflow
    r = self.proxy('object').exec_workflow(self._db, self._uid, self._password, model, signal, id)
  File "/opt/openerp/server/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/server/openerp/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 220, in exec_workflow
    res = self.exec_workflow_cr(cr, uid, obj, signal, *args)
  File "/opt/openerp/server/openerp/osv/osv.py", line 213, in exec_workflow_cr
    return object._workflow_signal(cr, uid, [res_id], signal)[res_id]
  File "/opt/openerp/server/openerp/osv/orm.py", line 3928, in _workflow_signal
    result[res_id] = wf_service.trg_validate(uid, self._name, res_id, signal, cr)
  File "/opt/openerp/server/openerp/workflow/wkf_service.py", line 119, in trg_validate
    res2 = instance.validate(cr, id, ident, signal)
  File "/opt/openerp/server/openerp/workflow/instance.py", line 43, in validate
    workitem.process(cr, witem, ident, signal, force_running, stack=stack)
  File "/opt/openerp/server/openerp/workflow/workitem.py", line 60, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/opt/openerp/server/openerp/workflow/workitem.py", line 175, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/opt/openerp/server/openerp/workflow/workitem.py", line 183, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/opt/openerp/server/openerp/workflow/workitem.py", line 40, in create
    process(cr, res, ident, stack=stack)
  File "/opt/openerp/server/openerp/workflow/workitem.py", line 52, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/opt/openerp/server/openerp/workflow/workitem.py", line 106, in _execute
    returned_action = wkf_expr.execute(cr, ident, workitem, activity)
  File "/opt/openerp/server/openerp/workflow/wkf_expr.py", line 67, in execute
    return _eval_expr(cr, ident, workitem, activity['action'])
  File "/opt/openerp/server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr
    ret = eval(line, env, nocopy=True)
  File "/opt/openerp/server/openerp/tools/safe_eval.py", line 241, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/opt/openerp/server/openerp/osv/orm.py", line 374, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "/opt/openerp/server/openerp/addons/l10n_mx_ir_attachment_facturae/ir_attachment_facturae.py", line 194, in action_sign
    cr, uid, [invoice.id], fdata, context={})
  File "/opt/openerp/server/openerp/addons/l10n_mx_facturae_pac_sf/invoice.py", line 332, in _upload_ws_file
    resultado = wsdl_client.timbrar(*params)
  File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 470, in __call__
    return self.__r_call(*args, **kw)
  File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 492, in __r_call
    self.__hd, self.__ma)
  File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 363, in __call
    config = self.config)
  File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 187, in call
    r.endheaders()
  File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 776, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 757, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Nombre o servicio desconocido

¿podría alguien darme una idea del motivo de este error?

De antemano gracias.

Saludos a todos!!

Question information

Language:
English Edit question
Status:
Answered
For:
openerp-mexico-localization Edit question
Assignee:
No assignee Edit question
Last query:
2014-06-18
Last reply:
2014-06-18

Lo acabo de probar en nuestro runbot, y todo funciona bien.
http://runbot.vauxoo.com/openerp-mexico-maintainer.html#7_0-oml-all-sticky

Si gustas, te puedes conectar con usuario admin y password admin, y
comparar que es lo que tienes diferente.

2014-06-18 10:41 GMT-05:00 Antonio Hernández <
<email address hidden>>:

> New question #250423 on openerp-mexico-localization:
> https://answers.launchpad.net/openerp-mexico-localization/+question/250423
>
> Hola a todos.
>
> Primero que nada, muchas gracias por este desarrollo tan completo de
> openerp.
>
> Les comento que al momento de firmar el XML, tanto con datos prueba del
> PAC, como con datos reales me arroja el siguiente error:
>
> Client Traceback (most recent call last):
> File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in
> dispatch
> response["result"] = method(self, **self.params)
> File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line
> 1139, in exec_workflow
> return req.session.exec_workflow(model, id, signal)
> File "/opt/openerp/server/openerp/addons/web/session.py", line 147, in
> exec_workflow
> r = self.proxy('object').exec_workflow(self._db, self._uid,
> self._password, model, signal, id)
> File "/opt/openerp/server/openerp/addons/web/session.py", line 30, in
> proxy_method
> result = self.session.send(self.service_name, method, *args)
> File "/opt/openerp/server/openerp/addons/web/session.py", line 103, in
> send
> raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
>
>
> Server Traceback (most recent call last):
> File "/opt/openerp/server/openerp/addons/web/session.py", line 89, in
> send
> return openerp.netsvc.dispatch_rpc(service_name, method, args)
> File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
> result = ExportService.getService(service_name).dispatch(method,
> params)
> File "/opt/openerp/server/openerp/service/web_services.py", line 626, in
> dispatch
> res = fn(db, uid, *params)
> File "/opt/openerp/server/openerp/osv/osv.py", line 131, in wrapper
> return f(self, dbname, *args, **kwargs)
> File "/opt/openerp/server/openerp/osv/osv.py", line 220, in exec_workflow
> res = self.exec_workflow_cr(cr, uid, obj, signal, *args)
> File "/opt/openerp/server/openerp/osv/osv.py", line 213, in
> exec_workflow_cr
> return object._workflow_signal(cr, uid, [res_id], signal)[res_id]
> File "/opt/openerp/server/openerp/osv/orm.py", line 3928, in
> _workflow_signal
> result[res_id] = wf_service.trg_validate(uid, self._name, res_id,
> signal, cr)
> File "/opt/openerp/server/openerp/workflow/wkf_service.py", line 119, in
> trg_validate
> res2 = instance.validate(cr, id, ident, signal)
> File "/opt/openerp/server/openerp/workflow/instance.py", line 43, in
> validate
> workitem.process(cr, witem, ident, signal, force_running, stack=stack)
> File "/opt/openerp/server/openerp/workflow/workitem.py", line 60, in
> process
> ok = _split_test(cr, workitem, activity['split_mode'], ident, signal,
> stack)
> File "/opt/openerp/server/openerp/workflow/workitem.py", line 175, in
> _split_test
> _join_test(cr, t[0], t[1], ident, stack)
> File "/opt/openerp/server/openerp/workflow/workitem.py", line 183, in
> _join_test
> create(cr,[activity], inst_id, ident, stack)
> File "/opt/openerp/server/openerp/workflow/workitem.py", line 40, in
> create
> process(cr, res, ident, stack=stack)
> File "/opt/openerp/server/openerp/workflow/workitem.py", line 52, in
> process
> result = _execute(cr, workitem, activity, ident, stack)
> File "/opt/openerp/server/openerp/workflow/workitem.py", line 106, in
> _execute
> returned_action = wkf_expr.execute(cr, ident, workitem, activity)
> File "/opt/openerp/server/openerp/workflow/wkf_expr.py", line 67, in
> execute
> return _eval_expr(cr, ident, workitem, activity['action'])
> File "/opt/openerp/server/openerp/workflow/wkf_expr.py", line 57, in
> _eval_expr
> ret = eval(line, env, nocopy=True)
> File "/opt/openerp/server/openerp/tools/safe_eval.py", line 241, in
> safe_eval
> return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict,
> locals_dict)
> File "", line 1, in <module>
> File "/opt/openerp/server/openerp/osv/orm.py", line 374, in
> function_proxy
> return attr(self._cr, self._uid, [self._id], *args, **kwargs)
> File
> "/opt/openerp/server/openerp/addons/l10n_mx_ir_attachment_facturae/ir_attachment_facturae.py",
> line 194, in action_sign
> cr, uid, [invoice.id], fdata, context={})
> File
> "/opt/openerp/server/openerp/addons/l10n_mx_facturae_pac_sf/invoice.py",
> line 332, in _upload_ws_file
> resultado = wsdl_client.timbrar(*params)
> File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 470, in
> __call__
> return self.__r_call(*args, **kw)
> File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 492, in
> __r_call
> self.__hd, self.__ma)
> File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 363, in __call
> config = self.config)
> File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 187, in call
> r.endheaders()
> File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
> self._send_output(message_body)
> File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
> self.send(msg)
> File "/usr/lib/python2.7/httplib.py", line 776, in send
> self.connect()
> File "/usr/lib/python2.7/httplib.py", line 757, in connect
> self.timeout, self.source_address)
> File "/usr/lib/python2.7/socket.py", line 553, in create_connection
> for res in getaddrinfo(host, port, 0, SOCK_STREAM):
> gaierror: [Errno -2] Nombre o servicio desconocido
>
>
> ¿podría alguien darme una idea del motivo de este error?
>
> De antemano gracias.
>
> Saludos a todos!!
>
> --
> You received this question notification because you are an answer
> contact for openerp-mexico-localization.
>

--
Moisés López Calderón
Vauxoo - OpenERP's Gold Partner
Mobile: (+521) 477-752-22-30
Office: (+52) 477-773-33-46
web: http://www.vauxoo.com
twitter: @vauxoo
           @moylop260
hangout: <email address hidden>

Oba (oba-p) said : #2

Check your Network related functions specifically name resolution, host file, DNS first

Can you help with this problem?

Provide an answer of your own, or ask Antonio Hernández for more information if necessary.

To post a message you must log in.