-
Notifications
You must be signed in to change notification settings - Fork 27
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
Apollo gateway - file upload "missing operations" error on micro-service !! #54
Comments
hi @tkssharma, we'll take a look and come back asap, but it may happen only during next week, ok? |
i am good, Thanks for the support. |
I've seen similar errors when the services weren't parsing the received request body.Could you check if your microservices are parsing the request body? |
This is nestjs app, it manages body parsing itself added |
Just for example here is my microservice code 👍 I am able to upload files using
and this is how my gateway looks like I hope this example is enough to re-produce this issue
|
@tkssharma , using the example application you provided, it worked without using |
I saw these kind of errors happening if you forget to add the Upload resolver your project. Did you add it? |
Yes, My microservice works fine and i am able to upload files it just while I send same request through a gateway |
@tkssharma Have you fixed this problem? we have a similar titled issue that it looks like it was solved by correctly adding the headers. Please let me know or else we can close this issue. |
i am not able to fix it |
Okay, then we'll put someone on to help you here. |
Hi @tkssharma I'll take a look on what is going on. |
I have the same problem as @tkssharma. I wasn't able to pass the file to the microservice through the Gateway. The Microservice works perfectly by itself. Any luck in finding what's wrong? |
Thanks, finally someone is able to re-produce, This package provides this basic feature but if it doesn't work then ... |
Replying to myself here more than anyone; Explicitly setting the
|
@tkssharma, I've run the example you sent and the file upload worked correctly with and without chunked transfer. Maybe something changed in the most recent versions of nest that fixed this issue. "dependencies": {
"@apollo/federation": "^0.38.1",
"@apollo/gateway": "^2.0.0",
"@apollo/subgraph": "^2.3.2",
"@nestjs/apollo": "^10.2.0",
"@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0",
"@nestjs/graphql": "^10.2.0",
"@nestjs/platform-express": "^8.0.0",
"@profusion/apollo-federation-upload": "^4.0.0",
"apollo-server-core": "^3.11.1",
"apollo-server-express": "^3.11.1",
"graphql-upload": "^11.0.0",
"install": "^0.13.0",
"jsonwebtoken": "^9.0.0",
"nestjs": "^0.0.1",
"npm": "^9.5.1",
"typescript": "^4.6.3"
},
"devDependencies": {
"@types/graphql-upload": "^8.0.7",
"@types/jsonwebtoken": "^9.0.1"
} Which package versions have you used? I can also do some tests with them to check if this problem is caused by any of these packages |
always please provide examples so that devs don't have to struggle when they use some external 3rd party library
First of all thanks for providing this solution
I am a bit stuck with this solution
I saw this Blog https://medium.com/profusion-engineering/file-uploads-graphql-and-apollo-federation-c5a878707f4c the tried this solution but it does not work
I have nest js apollo federation gateway and microservices to support file upload, my use case is the same as mentioned in this blog
buildService: ({ url }) => new FileUploadDataSource({ url, useChunkedTransfer: true }),
My gateway
earlier I was trying this based on some existing issues on this repo
This is my curl request, i have created this curl request from the example app you guys have shared
Github Example Client-side
https://github.com/jaydenseric/apollo-upload-examples
at the microservices end I am getting the same always
Please let me know your inputs on this.
Thx,
The text was updated successfully, but these errors were encountered: