-
Notifications
You must be signed in to change notification settings - Fork 50
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
Object of type InMemoryUploadedFile is not JSON serializable #31
Comments
this error only occurs in mutations that have an upload file and some required field is missing due to mutation input. Graphene throws an error like this "error": { But FileUploadGraphQLView no show this message |
you might want to try
|
probably related to my issue #32 |
No, that's not the problem, change to required = false and it did not work. The problem is that FileUploadGraphQLView is not throwing graphene errors. |
Yes, the required is false is what I thought my help. But than in my case what you were experiencing also turned out what was happening to my post. |
I traced the error to this line https://github.com/graphql-python/graphql-core-legacy/blob/master/graphql/execution/values.py#L76 As state, I believe it's the same issue as #32 |
When I use the FileUploadGraphQLView view, messages thrown by graphene can not return them, Only replies
Object of type InMemoryUploadedFile is not JSON serializable
The frontend developers will not know what field is missing or what was the error that I identify by graphene
The text was updated successfully, but these errors were encountered: