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

[BUG] module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS' #1145

Closed
tomtommahout opened this issue Jul 8, 2023 · 2 comments · Fixed by #1161
Closed

[BUG] module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS' #1145

tomtommahout opened this issue Jul 8, 2023 · 2 comments · Fixed by #1161
Assignees
Labels

Comments

@tomtommahout
Copy link

Describe the bug
urllib2>2 throws the error below. Pin to urllib3<=2 resolves the issue for now.
Appears to be from requests lib updates (psf/requests#6443)

Connector name (If bug in the some connector):
Request Connector (Custom connector in the error listed below, but not changed from the default request_connector.py)

Error traceback (If available):


""2023-07-08 08:04:46" - |ERROR| - [tb_loader.py] - tb_loader - import_module - 75 - module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS'"
Traceback (most recent call last):
  File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/thingsboard_gateway/extensions/request/custom_request_connector.py", line 43, in <module>
    requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS += ':ADH-AES128-SHA256'
AttributeError: module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS'

Versions (please complete the following information):

  • OS: Docker on Windows
  • Thingsboard IoT Gateway version: 3.3
  • Python version: 3.10.12
@KubaDavid
Copy link

I just got this as well in the same situation.
Resolution as per this comment: psf/requests#6443 (comment)

@samson0v samson0v linked a pull request Aug 11, 2023 that will close this issue
@z1z2
Copy link

z1z2 commented Aug 25, 2023

the problem still exist in the docker version.
https://hub.docker.com/r/thingsboard/tb-gateway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants