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

port in URL is not converted to integer #3

Closed
zzzeek opened this issue Jul 12, 2019 · 1 comment
Closed

port in URL is not converted to integer #3

zzzeek opened this issue Jul 12, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@zzzeek
Copy link
Member

zzzeek commented Jul 12, 2019

pretty basic stuff!

>>> e = create_engine("mysql+pymysql://nova_api:7aTeVvzTKDNB58gqi6Z51yB27@10.0.20.36/nova_api?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo&plugin=collectd&collectd_host=localhost&collectd_port=25827")
>>> Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.6/site-packages/sqlalchemy_collectd/client/worker.py", line 37, in _process
    sender.send(connection, collection_target, now, interval, pid)
  File "/usr/lib/python3.6/site-packages/sqlalchemy_collectd/client/sender.py", line 29, in send
    sender(message_sender, connection, collection_target, timestamp)
  File "/usr/lib/python3.6/site-packages/sqlalchemy_collectd/client/sender.py", line 41, in _send_pool
    collection_target.num_connections
  File "/usr/lib/python3.6/site-packages/sqlalchemy_collectd/protocol.py", line 154, in send
    connection.send(header_ + payload)
  File "/usr/lib/python3.6/site-packages/sqlalchemy_collectd/protocol.py", line 315, in send
    self.socket.sendto(message, (self.host, self.port))
TypeError: an integer is required (got type str)

@zzzeek zzzeek added the bug Something isn't working label Jul 12, 2019
@sqla-tester
Copy link
Collaborator

Mike Bayer has proposed a fix for this issue in the master branch:

Coerce port to integer https://gerrit.sqlalchemy.org/1396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants