burdy-io / burdy

Most advanced open-source Headless CMS built in NodeJS and React. Written in Typescript!

Home Page:https://burdy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After uploading via any asset driver, there's a type error at generator.next().

DaftVadeR opened this issue · comments

Hi there,

I apologise if I'm being daft or missing something, but I can't seem to get uploads to work. Whenever I try, I get the following error. It happens for both WYSIWYG uploads and image field uploads.

I've not added any custom hooks or anything yet, it's entirely a fresh install (npx create-burdy-app) outside of setting the config vars and initialising the DB (postgres) and adding two new content types.

I'm running on Windows 10, Node 14.17.0, NPM 6.14.13, Burdy 1.0.5.

Using both 'fs' and 'aws_s3' as the driver.

Capture

TypeError: Cannot read property 'split' of undefined
at C:\Users\daft\react-dev\burdy-test\burdy.dev-build\main.js:1204:18
at Generator.next ()
at C:\Users\daft\react-dev\burdy-test\burdy.dev-build\main.js:1029:71
at new Promise ()
at webpack_modules../node_modules/burdy/src/server/controllers/asset.controller.js.__awaiter (C:\Users\daft\react-dev\burdy-test\burdy.dev-build\main.js:1025:12)
at C:\Users\daft\react-dev\burdy-test\burdy.dev-build\main.js:1195:55
at EntityManager. (C:\Users\daft\react-dev\burdy-test\node_modules\typeorm\entity-manager\EntityManager.js:87:50)
at step (C:\Users\daft\react-dev\burdy-test\node_modules\tslib\tslib.js:143:27)
at Object.next (C:\Users\daft\react-dev\burdy-test\node_modules\tslib\tslib.js:124:57)
at fulfilled (C:\Users\daft\react-dev\burdy-test\node_modules\tslib\tslib.js:114:62)

Is there something I missed in the installation process? Maybe to allow for asset uploads? Thanks in advance 🙏

Thank you, we will take a look at this issue. Will keep you posted

This error is caused by param name not being provided to the burdy while uploading file, can you maybe provide us with browser that you are using?

I'm using Chrome 94.0.4606.61.

The posted fields to /api/assets were:

mimeType: image/jpeg
duplicateName: true
file: (binary)

Thanks for your help!

Thank you, we believe we have found an issue and will release an update / new version later today. We will keep you posted.

Hi @DaftVadeR. the linked pull request should resolve the issue. We will do couple of more checks before releasing a new patch version.

Thank you for the submission!

@DaftVadeR we have published a new version, can you please update burdy to 1.0.6

npm i burdy@1.0.6

Run it again and tell us if it works, we have tested the latest version on Windows, Mac and Linux.

NOTE: You can also upload images or assets by just doing drag and drop to the DAM

Thanks for your help - I'll test it out tomorrow morning! Cheers 🕺