You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error on request:
Traceback (most recent call last):
File "/test-runtime/lib/python3.9/site-packages/werkzeug/serving.py", line 370, in run_wsgi
execute(self.server.app)
File "/test-runtime/lib/python3.9/site-packages/werkzeug/serving.py", line 331, in execute
application_iter = app(environ, start_response)
File "/test-runtime/lib/python3.9/site-packages/moto/moto_server/werkzeug_app.py", line 264, in __call__
return backend_app(environ, start_response)
File "/test-runtime/lib/python3.9/site-packages/flask/app.py", line 1478, in __call__
return self.wsgi_app(environ, start_response)
File "/test-runtime/lib/python3.9/site-packages/flask/app.py", line 1458, in wsgi_app
response = self.handle_exception(e)
File "/test-runtime/lib/python3.9/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/test-runtime/lib/python3.9/site-packages/flask/app.py", line 1455, in wsgi_app
response = self.full_dispatch_request()
File "/test-runtime/lib/python3.9/site-packages/flask/app.py", line 869, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/test-runtime/lib/python3.9/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/test-runtime/lib/python3.9/site-packages/flask/app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
File "/test-runtime/lib/python3.9/site-packages/flask/app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/test-runtime/lib/python3.9/site-packages/moto/core/utils.py", line 112, in __call__
result = self.callback(request, request.url, dict(request.headers))
File "/test-runtime/lib/python3.9/site-packages/moto/core/responses.py", line 307, in _inner
response = getattr(cls(), to_call.__name__)(request, full_url, headers)
File "/test-runtime/lib/python3.9/site-packages/moto/s3/responses.py", line 1377, in key_response
self.setup_class(request, full_url, headers)
File "/test-runtime/lib/python3.9/site-packages/moto/s3/responses.py", line 191, in setup_class
self.body = request.input_stream.getvalue()
AttributeError: '_io.BufferedReader' object has no attribute 'getvalue'
I put a comment in #8596 with some thoughts on this. Something that would also be helpful, if you're up for it, would be to stand up a minimal failing test case using the AWS SDK for C++. You can look in the other_langs directory in moto for some examples using other AWS SDKs.
jeking3
added a commit
to jeking3/moto
that referenced
this issue
Feb 17, 2025
Example request:
Example 500 stack:
Code in question:
moto/moto/s3/responses.py
Line 191 in c2a0d9c
I'm not sure where the BufferedReader comes from; it does not appear to be from moto.
The text was updated successfully, but these errors were encountered: