-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
botocore.exceptions.ParamValidationError: #1256
Comments
What operation were you calling? Could you provide some debug logs and a code snippet? |
Closing due to inactivity. |
I am getting this as well, calling PUT. My initial suspicion is that its an issue caused by another package, not a boto3 issue direclty. Here is the full stack trace:
Using: Python 3.6 |
I'm getting this error as well, using @JordonPhillips can't provide a code snippet here, because it's a call from a 3rd party app, aka django-filer, deeply inside a Django admin's object save.
The trace stack is identical with that provided by @bxm156 |
This isn't a problem with boto, it's due to a bug in either django storages
or filer. I'll link the ticket when I get to a computer
…On Nov 24, 2017 8:10 AM, "Jacob Rief" ***@***.***> wrote:
I'm getting this error as well, using
boto3==1.4.8
botocore==1.8.1
s3transfer==0.1.11
@JordonPhillips <https://github.com/jordonphillips> can't provide a code
snippet here, because it's a call from a 3rd party app, aka django-filer,
deeply inside a Django admin's object save.
(... same as above ...)
File ".../python3.6/site-packages/botocore/validate.py", line 291, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter ContentType, value: None, type: <class 'NoneType'>, valid types: <class 'str'>
The trace stack is identical with that provided by @bxm156
<https://github.com/bxm156>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1256 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAITZKKMceq5cjjFS6O4DnDjXCi24OU-ks5s5r_ZgaJpZM4PSBbq>
.
|
The issue is that django-storages is calling boto with an empty Content-Type, which is not allowed. This is perhaps due to a bug in either filer or django-storages. The django File object for some reason has a content-type of "None" I don't know why, but I found an improvement to the file type detection that could be made in django-storages. |
OK, thanks for your efforts. |
I am getting the following error;
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter ContentType, value: None, type: , valid types:
The text was updated successfully, but these errors were encountered: