-
Notifications
You must be signed in to change notification settings - Fork 274
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
asyncio code error during S3 upload despite only using synchronous functions #909
Comments
First, a clarification: some fsspec implementations like s3fs are implemented async internally. The API that you are calling is blocking, but an event loop is running on another thread which actually executes the IO. This means that batch operations can happen without serialising the latency wait for each one. Second: your actual error is the 'Data should not be empty' one. This rings a bell, it sounds like something that was fixed earlier this year. What version of s3fs do you have? |
Thank you! My current version is 2024.3.1 -- Edit: I updated the version and will let you know if I am still running into issues in the next few days |
I'm still running into the same error after updating the version. The error itself is probably related to the server, then. Is there a way to at least catch the error, though? Right now, it's not going to the except block. |
Please post your whole traceback, so we can see where this is being called from. |
That is the whole traceback that I see. I just see the first error over and over again, and occasionally, the second error shows up once at the bottom. I did end up making a change to use put_file() instead, and that has seemed to solve the issue for now. |
I am using s3fs to send data from SQL Server to S3. I recently started getting an error that seems to be related to some type of async process.
Here is the exact process I take:
Here are the exact lines of code where the error occurs (fs is the S3FileSystem object):
At random times and for random tables, I have been getting these errors that seem to do with a connection issue:
I am currently working on solving the ConnectionError, but can anyone help me understand these other two questions?
Thanks in advance!
The text was updated successfully, but these errors were encountered: