Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

IndexError when using AWS X-Ray SDK with SQLAlchemy

Aperta
#392 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@carolabadeer ci sta già lavorando.

Dal 17/8/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

question

I am encountering an issue when using the AWS X-Ray SDK to trace my AWS Lambda function, which utilizes SQLAlchemy for database operations. When invoking the Lambda function, I receive the following error:

Error getting the sanitized query
Traceback (most recent call last):
  File "/opt/python/aws_xray_sdk/ext/sqlalchemy_core/patch.py", line 46, in _sql_meta
    if isinstance(args[0], ClauseElement):
IndexError: tuple index out of range

I am using the patch_all() function from the AWS X-Ray SDK to patch all available libraries, including SQLAlchemy:
Could you please help me understand the cause of this error and suggest a possible solution? Let me know if you need more information about my implementation or environment.

aws_xray_sdk == 2.12.0
Sqlalchemy == 2.0.14

I added lambda Active tracing too.

Many thanks

Lingua principale
Python
Stelle
339
Fork
147
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aws/aws-xray-sdk-python

Tutte le issue di aws/aws-xray-sdk-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.