-
Notifications
You must be signed in to change notification settings - Fork 185
The error asyncio.exceptions.CancelledError occurred while parsing the CSV. #671
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
Comments
Hi @kivdev, Thank you for reaching out with your issue. To better understand and address the problem you're experiencing, it would be incredibly helpful if you could share an example of how your data looks. An anonymized export from the InfluxDB UI would be ideal. This information will allow us to accurately simulate your scenario and work towards a resolution. Thanks a lot for your cooperation. Looking forward to your response. Best Regards. |
Hi @bednar, The data is stored as a string in the format [{"client": str, "requests": int, "date_report": str}, ....]. Unfortunately, I cannot provide a slice from the database. |
I'm also having this error. I'm returning a query with 300k rows. Any updates? @bednar The exact code I'm using is: result = await influxdb_connector.query_data_frame(query, use_extension_dtypes=True) The flux query is:
The bottom of the exception output:
Edit: |
I've managed to reproduce this issue with the attached script. exploreIssue671.py.txt
Will investigate further. |
After further investigation. It appears the root cause is in the For example async with InfluxDBClientAsync(url="http://localhost:8086", token="my-token", org="my-org", timeout=60_000) as client:
... I'm opening a PR to more clearly handle this exception in this situation. |
Specifications
Code sample to reproduce problem
Expected behavior
Executed without errors.
Actual behavior
Additional info
The error occurs only if there is a lot of data. (251,395 records with JSON content)
The text was updated successfully, but these errors were encountered: