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

conexion con afip - dh key too small #59

Open
franivars00 opened this issue Apr 8, 2023 · 0 comments
Open

conexion con afip - dh key too small #59

franivars00 opened this issue Apr 8, 2023 · 0 comments

Comments

@franivars00
Copy link

No me gusta mi camisa

Odoo 15 en ubuntu 20 a 22

Una vez instalados los certificados, cuando queres validar o conectar contra afip salta el siguiente error

Al parecer hay un problema con pyopenssl.

Se probaron distintas versiones de pyopenssl y sus dependencias y no se puede hacer funcionar

"
Traceback (most recent call last):
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/pysimplesoap/transport.py", line 117, in _conn_request
return httplib2.Http._conn_request(self, conn, request_uri, method, body, headers)
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/httplib2/init.py", line 1366, in _conn_request
conn.connect()
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/httplib2/init.py", line 1158, in connect
self.sock = self._context.wrap_socket(sock, server_hostname=self.host)
File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.10/ssl.py", line 1071, in _create
self.do_handshake()
File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:997)

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

Traceback (most recent call last):
File "/opt/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/opt/odoo/odoo-server/odoo/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo-server/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo-server/odoo/http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo-server/odoo/http.py", line 910, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo-server/odoo/http.py", line 535, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 1330, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 1318, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo-server/odoo/api.py", line 464, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo-server/odoo/api.py", line 451, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo-server/addons/ar/odoo-argentina-15.0/l10n_ar_afipws_fe/models/journal.py", line 128, in test_pyafipws_dummy
ws = self.company_id.get_connection(afip_ws).connect()
File "/opt/odoo/odoo-server/addons/ar/odoo-argentina-15.0/l10n_ar_afipws/models/afipws_connection.py", line 155, in connect
ws.Conectar("", wsdl or "", "")
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/pyafipws/utils.py", line 245, in Conectar
self.client = SoapClient(
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/pysimplesoap/client.py", line 151, in init
self.services = wsdl and self.wsdl_parse(wsdl, debug=trace, cache=cache)
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/pysimplesoap/client.py", line 473, in wsdl_parse
xml = fetch(url)
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/pysimplesoap/client.py", line 457, in fetch
response, xml = self.http.request(url, "GET", None, {
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/httplib2/init.py", line 1724, in request
(response, content) = self._request(
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/httplib2/init.py", line 1444, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/pysimplesoap/transport.py", line 133, in _conn_request
return Httplib2Transport._conn_request(self, conn, request_uri, method, body, headers)
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/pysimplesoap/transport.py", line 117, in _conn_request
return httplib2.Http._conn_request(self, conn, request_uri, method, body, headers)
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/httplib2/init.py", line 1366, in _conn_request
conn.connect()
File "/opt/odoo/odoo-server/venv/lib/python3.10/site-packages/httplib2/init.py", line 1158, in connect
self.sock = self._context.wrap_socket(sock, server_hostname=self.host)
File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.10/ssl.py", line 1071, in _create
self.do_handshake()
File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
Exception

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

Traceback (most recent call last):
File "/opt/odoo/odoo-server/odoo/http.py", line 643, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:997)

"

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