nodejs-goof icon indicating copy to clipboard operation
nodejs-goof copied to clipboard

[BUG]: Connect 500 TypeError: Busboy is not a constructor

Open afiksnyk opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description of the bug

Connect 500 TypeError: Busboy is not a constructor

Steps To Reproduce

  1. Open localhost:3001
  2. Insert an input in the todolist app

Additional Information

Managed to solve it via - npm install [email protected]

afiksnyk avatar Apr 05 '23 08:04 afiksnyk

@afiksnyk Is there any way to resolve this in the Docker container?

Currently have run into the same issue where the application, which was tested in a Docker container, is currently experiencing issues with a dependency. This results in a 500 TypeError with the message "Busboy is not a constructor". Additionally, the TODO list feature of the application is no longer functioning.

ryanjonesrocks avatar Apr 26 '23 19:04 ryanjonesrocks

Steps to solve in Dockerfile

  1. Edit the dependencies object in package.json
  2. Replace the following two dependencies to more up to date versions

Before

    "express": "4.12.4",
    "express-fileupload": "0.0.5",

After

  "express": "4.17.1",
  "express-fileupload": "1.4.0",

ryanjonesrocks avatar Apr 26 '23 19:04 ryanjonesrocks

Hey Guy - this worked for me - I had almost given up - has this gone through as a pull request? or does it need more testing?

essexgit avatar Aug 19 '23 18:08 essexgit

@essexgit Thanks for your feedback I submitted a pull request just now. Let's see what the developers think.

ryanjonesrocks avatar Aug 21 '23 05:08 ryanjonesrocks