question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't upload assets

See original GitHub issue

Describe 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:

  1. execute with default values and any DB (I tested in MySql and sQlLite):
yarn create @vendure my-app
  1. execute:
cd my-app
yarn start
  1. Navigate to
http://localhost:3000/admin/catalog/assets
  1. Click on “Upload Asset” and select an image.

If debug is enabled the following is printed:

image

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:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
fmqcommented, Jul 2, 2020

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

0reactions
michaelbromleycommented, Feb 18, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found