question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reading errors after upgrade from 0.2.0 to 0.4.0

See original GitHub issue

Hi We are running Flask service on a docker image. one of our main routes reads file from S3 and returns it’s content. recently we upgraded the package from version 0.2.0 to 0.4.0.

After the upgrade, the route is working fine, but after several hours it raises strange exceptions contains only the file path (without any other information)

Our temporary solution for that is to reset the container, after that it’s working fine, but fails again after several hours.

The most strange thing is that when I am connecting to the same container (with the connection issues) and I am opening python shell and execute the code - It’s working as expected, even when the flask service on the same container raise exceptions on the same file.

any ideas? thanks

my code:

fs = s3fs.S3FileSystem()
with fs.open('PATH_TO_FILE.json', 'rb') as f:
    data = f.read()
    f.close()
    json_content =  json.loads(data.decode('utf-8'))

print(json_content)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ohadmatacommented, Dec 5, 2019

Hi everyone. After two days It looks like this change [invalidate_cache] fixed the problem. thanks!

1reaction
martindurantcommented, Dec 3, 2019

Duplicate of #253 ? @TomAugspurger , time to make dircache optional and off by default; or to introduce timed expiry?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading errors after upgrade from 0.2.0 to 0.4.0 #271 - GitHub
Hi We are running Flask service on a docker image. one of our main routes reads file from S3 and returns it's content....
Read more >
Patch Upgrade 10.2.0.4 gave the below error after catupgrd ...
It means that these components are not supported by your database edition. After the upgrade they will remain at the original version and...
Read more >
Changelog | Meteor API Docs
Throwing an error when the login tokens are not generated well calling requestLoginTokenForUser. PR. Node updated to v14.19.3; npm update to v6.14.17; Fix ......
Read more >
Changelog - cibuildwheel
Fix a bug when building CPython 3.8 wheels on an Apple Silicon machine where testing would always fail. · Update the prerelease CPython...
Read more >
Direct Database Upgrade from 2.3.0.2.0 to 3.2.0.0.0
Billing database from 2.3.0.2.0 or any later version to 3.2.0.0.0. ... that you need to perform after upgrading from one version to another....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found