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

Type error when SSL parameter passed with no port parameter #2192

Open
blue-hound opened this issue Feb 14, 2024 · 0 comments
Open

Type error when SSL parameter passed with no port parameter #2192

blue-hound opened this issue Feb 14, 2024 · 0 comments
Assignees
Labels

Comments

@blue-hound
Copy link

Describe the bug
I have modified my docker-compose file by adding the following:

command: python ./changedetection.py -d /datastore -s

This caused the following python error:

Traceback (most recent call last):
File "/app/./changedetection.py", line 6, in <module>
    changedetectionio.main()
  File "/app/changedetectionio/__init__.py", line 187, in main
    eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((host, port), s_type),
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/eventlet/convenience.py", line 78, in listen
    sock.bind(addr)
TypeError: 'str' object cannot be interpreted as an integerwhen SSL is enabled on the command line (Docker).

I noticed the else statement (for when ssl is not enabled) casts the port variable to int. If I add -p 5000 to the command section, the program runs in the docker container.

Version
v0.45.13

To Reproduce
Modify docker-compose file and add the following to the changedetection service.

command: python ./changedetection.py -d /datastore -s

The run docker-compose up.

Additional context
I have mapped the following:

volumes:
    - /ssl/cert.pem:/app/cert.pem
    - /ssl/privkey.pem:/app/privkey.pem
    ...

This presents the correct certificate.

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

No branches or pull requests

2 participants