AttributeError: 'NoneType' object has no attribute 'read'
See original GitHub issueTraceback (most recent call last):
File "/home/prerender/venv/lib/python3.6/site-packages/prerender/app.py", line 129, in handle_request
data = await cache.get(url, format)
File "/usr/lib/python3.6/asyncio/coroutines.py", line 128, in throw
return self.gen.throw(type, value, traceback)
File "/home/prerender/venv/lib/python3.6/site-packages/prerender/cache/s3.py", line 47, in get
res = await loop.run_in_executor(None, self.client.get_object, S3_BUCKET, path)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/prerender/venv/lib/python3.6/site-packages/minio/api.py", line 781, in get_object
object_name)
File "/home/prerender/venv/lib/python3.6/site-packages/minio/api.py", line 1486, in _get_partial_object
preload_content=False)
File "/home/prerender/venv/lib/python3.6/site-packages/minio/api.py", line 1900, in _url_open
object_name).get_exception()
File "/home/prerender/venv/lib/python3.6/site-packages/minio/error.py", line 141, in __init__
self._handle_error_response(bucket_name)
File "/home/prerender/venv/lib/python3.6/site-packages/minio/error.py", line 161, in _handle_error_response
if not self._response.data:
File "/home/prerender/venv/lib/python3.6/site-packages/urllib3/response.py", line 188, in data
return self.read(cache_content=True)
File "/home/prerender/venv/lib/python3.6/site-packages/urllib3/response.py", line 380, in read
data = self._fp.read()
File "/usr/lib/python3.6/http/client.py", line 456, in read
return self._readall_chunked()
File "/usr/lib/python3.6/http/client.py", line 566, in _readall_chunked
value.append(self._safe_read(chunk_left))
File "/usr/lib/python3.6/http/client.py", line 612, in _safe_read
chunk = self.fp.read(min(amt, MAXAMOUNT))
AttributeError: 'NoneType' object has no attribute 'read'
When error occurs, access self._response.data
in ResponseError._handle_error_response
may result in another exception.
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (17 by maintainers)
Top Results From Across the Web
Why do I get AttributeError: 'NoneType' object has no attribute ...
It means the object you are trying to access None . None is a Null variable ...
Read more >Why do I get AttributeError: 'NoneType' object has ... - Intellipaat
You are getting AttributeError: 'NoneType' object has no attribute 'something' because NoneType means that instead of an instance of whatever Class or ...
Read more >AttributeError: 'NoneType' object has no attribute 'read' #4518
Following on from #4509 after the 7.1.0 release, we have a new issue that cropped up opening a png from scikit-image. What did...
Read more >AttributeError ('NoneType' object has no attribute 'read') after ...
I think the problem is when reading in your conditions file - it seems to think that there's 16 rows when there's only...
Read more >How do I fix : attributeerror: 'nonetype' object has no attribute ...
When ever you get a problems that involves a message such as " 'nonetype' object has no attribute ..." it means the same...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@hackintoshrao Yes.
@messense , closing this issue for now. Please reopen if you still see this with latest version of minio-py.