Can't upload assets
See original GitHub issueDescribe the bug I created a default instance and when I try to upload assets it does not work, it gives the following error:
run:server] error 7/1/20, 8:55 PM - [ExceptionsHandler] Maximum call stack size exceeded
[run:server] RangeError: Maximum call stack size exceeded
[run:server] at _openReadFs (internal/fs/streams.js:150:21)
[run:server] at ReadStream.<anonymous> (internal/fs/streams.js:146:3)
[run:server] at ReadStream.deprecated [as open] (internal/util.js:89:15)
[run:server] at ReadStream.open (/Users/fmq/workspace/work/my-app/node_modules/fs-capacitor/lib/index.js:90:11)
[run:server] at _openReadFs (internal/fs/streams.js:153:12)
[run:server] at ReadStream.<anonymous> (internal/fs/streams.js:146:3)
[run:server] at ReadStream.deprecated [as open] (internal/util.js:89:15)
[run:server] at ReadStream.open (/Users/fmq/workspace/work/my-app/node_modules/fs-capacitor/lib/index.js:90:11)
[run:server] at _openReadFs (internal/fs/streams.js:153:12)
[run:server] at ReadStream.<anonymous> (internal/fs/streams.js:146:3)
To Reproduce Steps to reproduce the behavior:
- execute with default values and any DB (I tested in MySql and sQlLite):
yarn create @vendure my-app
- execute:
cd my-app
yarn start
- Navigate to
http://localhost:3000/admin/catalog/assets
- Click on “Upload Asset” and select an image.
If debug is enabled the following is printed:
Expected behavior The asset is uploaded to the asset library.
Environment (please complete the following information):
- @vendure/core version: 0.13.1
- Nodejs version: v14.4.0
- Database (mysql/postgres etc): Mysql / SqlLite
Additional context after testing I added debug by adding logger config to config file (src/vendure-config.ts)
logger: new DefaultLogger({ level: LogLevel.Debug }),
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Can't upload assets - Bugs - Forum | Webflow
I downloaded all the assets for the project, unzipped, and was going to put them into the assets panel. Only some of the...
Read more >Troubleshoot asset upload errors - Ads Creative Studio Help
If there's a problem while uploading assets to the asset library, you'll see an error. Click Show to see more details. This will...
Read more >Can't upload assets : r/ClipStudio - Reddit
I am trying to upload a Clip Studio asset but when I click the upload button it doesn't work, and I did add...
Read more >Why are my assets not uploading? - Widen Connect
If your assets don't upload to the Widen Collective®, try this: Check to make sure you're using a supported browser. Open the site...
Read more >Unable to Upload Assets ? Whats the Sandbox Creator Fund
Looking to upload your assets in Sandbox Game. This video will help you understand why Medium article ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just downgraded to node v12.18.2 and it’s working now.
I will retest once de PR is in place and re-open this issue if it still fails.
Thanks
The fix is now available in apollo-server-core v2.21.0, but unfortunately we can’t directly ugrade to that right now because we it is a transitive dependency via
@nestjs/graph
, which is still using v2.16.1. Therefore the fix for now will probably be to implement something like https://github.com/nestjs/graphql/issues/901#issuecomment-780007582