-
Notifications
You must be signed in to change notification settings - Fork 142
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
Psycopg <class 'IndexError'> tuple index out of range #90
Comments
I'm presuming the |
|
It may not be obvious but use of patch_all() or patch of psycopg will cause any code error out and stack trace when opening connection to database. This is quite serious bug. |
After some more digging around turns out problem was different but solution remained the same. Psycopg supports passing of database name both as There may still be a way to use method 3 as described in comment above but its not obvious. And psycopg will error out if there are no arguments on connect. https://github.com/psycopg/psycopg2/blob/master/lib/__init__.py#L122 Maybe if you set port via kwarg / dsn but the rest via env var? |
Getting this error when database is localhost |
Is this still an issue or was this solved with 180de75? |
@Tankanow this is fixed in the commit you mentioned. We will close this issue once the commit is released (which should be soon). |
The fix is released in 2.2.0 https://pypi.org/project/aws-xray-sdk/. Closing. |
The text was updated successfully, but these errors were encountered: