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
Hello, I would like to notice that file upload is not working anymore.
In our service we're using docker and typescript (more info see below), also we're using graphql-yoga to publish our graphql API. We are using our service as a gateway (thanks apollo schema stitching), so each request is forwarded to an appropriate service in our platform. Also we have to upload user files in our storage, that's why we're using a custom file upload link (it accepts graphql multipart request, stores files' data in buffer, then builds form data and forwards a request to the internal service). It was working well, until now.
I've tried to find out the problem, so i've decided to use your example with file upload. But it's not working too.
I've done what you readme says about cloning the repo, installing the dependencies and then I've started the server with Upload example.
{
"data": null,
"errors": [
{
"message": "createReadStream is not a function",
"locations": [
{
"line": 1,
"column": 43
}
],
"path": [
"singleUpload"
]
}
]
}
Server logs:
TypeError: createReadStream is not a function
at Object.<anonymous> (/home/user/tmp/graphql-yoga/examples/file-upload/index.ts:38:18)
at step (/home/user/tmp/graphql-yoga/examples/file-upload/index.ts:32:23)
at Object.next (/home/user/tmp/graphql-yoga/examples/file-upload/index.ts:13:53)
at fulfilled (/home/user/tmp/graphql-yoga/examples/file-upload/index.ts:4:58)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
My intent
I was trying to understand why we're having a trouble with file upload:
RangeError: Maximum call stack size exceeded
at ReadStream.open (/app/node_modules/fs-capacitor/lib/index.js:1:1)
at _openReadFs (internal/fs/streams.js:135:12)
at ReadStream.<anonymous> (internal/fs/streams.js:128:3)
at ReadStream.deprecated [as open] (internal/util.js:86:15)
at ReadStream.open (/app/node_modules/fs-capacitor/lib/index.js:94:11)
at _openReadFs (internal/fs/streams.js:135:12)
at ReadStream.<anonymous> (internal/fs/streams.js:128:3)
at ReadStream.deprecated [as open] (internal/util.js:86:15)
at ReadStream.open (/app/node_modules/fs-capacitor/lib/index.js:94:11)
at _openReadFs (internal/fs/streams.js:135:12)
It seems to me that the same problem was described here. But I want show you that the problems still exists and your example doesn't help us to resolve it.
The text was updated successfully, but these errors were encountered:
Hey @zerlok@johntr we @the-guild-org are the the new maintainers of this project and are actively developing v2. It now supports GraphQL Multipart Request spec so there is no need to additional libraries checkout https://www.graphql-yoga.com/docs/features/file-uploads and would love to get your feedback on our beta release. Thanks!
Hello, I would like to notice that file upload is not working anymore.
In our service we're using docker and typescript (more info see below), also we're using graphql-yoga to publish our graphql API. We are using our service as a gateway (thanks apollo schema stitching), so each request is forwarded to an appropriate service in our platform. Also we have to upload user files in our storage, that's why we're using a custom file upload link (it accepts graphql multipart request, stores files' data in buffer, then builds form data and forwards a request to the internal service). It was working well, until now.
I've tried to find out the problem, so i've decided to use your example with file upload. But it's not working too.
I've done what you readme says about cloning the repo, installing the dependencies and then I've started the server with Upload example.
Dependencies:
I'm using insomnia to simply send requests (also multipart requests with file data). Here's what i receive on your example:
Request (multipart)
![image](https://user-images.githubusercontent.com/2662297/72888769-cf19d780-3d40-11ea-937f-e4f71fbecfa6.png)
:
Response:
Server logs:
My intent
I was trying to understand why we're having a trouble with file upload:
It seems to me that the same problem was described here. But I want show you that the problems still exists and your example doesn't help us to resolve it.
The text was updated successfully, but these errors were encountered: