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

[ERROR] Error handling request /api/users/ #8

Open
stryker09 opened this issue Mar 30, 2019 · 1 comment
Open

[ERROR] Error handling request /api/users/ #8

stryker09 opened this issue Mar 30, 2019 · 1 comment

Comments

@stryker09
Copy link

Probably related to the latest oncall commits, none of the functions no longer seem to work:

[2019-03-30 14:35:36 +0000] [7155] [ERROR] Error handling request /api/users/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base_async.py", line 56, in handle
self.handle_request(listener_name, req, client, addr)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
addr)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base_async.py", line 107, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/local/lib/python2.7/dist-packages/falcon-1.1.0-py2.7.egg/falcon/api.py", line 209, in call
responder(req, resp, **params)
File "/home/stryker/develop/oncall-admin/src/oncall_admin/api.py", line 88, in on_post
connection = db.engine.raw_connection()
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 2104, in raw_connection
self.pool.unique_connection, _connection)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 2074, in _wrap_pool_connect
return fn()
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 318, in unique_connection
return _ConnectionFairy._checkout(self)
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 713, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 480, in checkout
rec = pool._do_get()
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 1060, in _do_get
self._dec_overflow()
File "build/bdist.linux-x86_64/egg/sqlalchemy/util/langhelpers.py", line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 1057, in _do_get
return self._create_connection()
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 323, in _create_connection
return _ConnectionRecord(self)
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 449, in init
self.connection = self.__connect()
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 607, in __connect
connection = self.__pool._invoke_creator(self)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/strategies.py", line 97, in connect
return dialect.connect(*cargs, **cparams)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 385, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/init.py", line 88, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/connections.py", line 679, in init
self.connect()
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/connections.py", line 890, in connect
self._get_server_information()
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/connections.py", line 1214, in _get_server_information
self.server_charset = charset_by_id(lang).name
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/charset.py", line 34, in by_id
return self._by_id[id]
KeyError: 255
172.18.100.65 - - [30/Mar/2019:14:35:36 +0800] "POST /api/users/ HTTP/1.1" 500 0 "-" "-"

@dwang159
Copy link
Owner

dwang159 commented Mar 31, 2019 via email

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

2 participants