Closed sickfar closed 3 years ago
@sickfar sorry for the delay. I'm on vacation. I looked at your backtrace and the problem does not seen related to this package (at least based on what it was posted in here).
The error that you're seeing is that you're returning null for a field that is not supposed to be null.
How is your resolver?
I have debugged my microservice at its graphql endpoint, and figured out that it does not even receive the request (however with files less than 1mb it does). The request fails somewhere on gateway side
Did you try to tweak the graphql-upload options? https://github.com/jaydenseric/graphql-upload#type-processrequestoptions
Check that the maxFieldSize is exactly 1 mb by default.
I tried tweaking other two fields, but not this. Probably browser's graphql-request (not even apollo) package sends some invalid multipart request with invalid placement of a file inside a form-field.
Thank you for the direction, I will take a look into it a bit later.
@sickfar any news?
@cabelitos my turn to have a vacation :) anyway, I've checked client as well as other parts and did not find any misconfiguration or smth. So I decided to switch to direct Google Cloud storage upload, as I deploy to GCP anyway. This problem was not solved for me, but it is not actual anymore, so I close the issue
Hi, guys.
I'm using this library for file uploads. However, I cannot upload any file bigger than 1 Mb.
When I try to upload a bigger file, I always get response error
however, nothing logged on server side or there is no more extra information.
Sometimes (randomly and quite rarely) I get also this
The code is quite trivial (almost the same as in Apollo doc)
When I'm trying to debug my microservice, it does not even receive a request from the gateway.
I updated to Apollo 3, but had the same issue with 2 version. Point me to the right direction please.