[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# Deployment issues while uploading node.js application on vercel

302 views · 0 likes · 4 posts


Stardust4550 Gmailcom (@stardust4550-gmailco) · 2024-07-27

<!-- Be sure to include all detail needed to let others see the same problem -->
Hi
I am getting issues while uploading my node.js web app on vercel. It works fine on my local machine but when I try to deploy it I got this, 
`This Serverless Function has crashed.

Your connection is working correctly.

Vercel is working correctly.

500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: cle1::494dn-1722104679054-ae2a57048256

If you are a visitor, contact the website owner or try again later.
If you are the owner, learn how to fix the error and check the logs.`





After that I tried to figure out the cause of the issue and came across this error 
`Error: Please install pg package manually
    at ConnectionManager._loadDialectModule (/var/task/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:55:15)
    at new ConnectionManager (/var/task/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:15:24)
    at new PostgresDialect (/var/task/node_modules/sequelize/lib/dialects/postgres/index.js:13:30)
    at new Sequelize (/var/task/node_modules/sequelize/lib/sequelize.js:194:20)
    at Object.<anonymous> (/var/task/modules/legoSets.js:8:19)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at /opt/rust/nodejs.js:1:11506
Node.js process exited with exit status: 1. The logs above can help with debugging the issue.
INIT_REPORT Init Duration: 739.70 ms	Phase: invoke	Status: error	Error Type: Runtime.ExitError
` 

on the logs column of my project and don't know how to troubleshoot it. My assignment is due in few hours and I am trying to solve this from last 2 days. Can please someone help me


Pauline P. Narvas (@pawlean) · 2024-07-28

Hi @stardust4550-gmailco!

Welcome to the Vercel Community. Great to have you join us :smiley: 

Did you manage to get a solution?

I would recommend sharing more a **[minimal reproducible example](https://vercel.com/guides/creating-a-minimal-reproducible-example)** to help us debug.


Stardust4550 Gmailcom (@stardust4550-gmailco) · 2024-07-28

Hi  @pawlean 
I checked the link and I fulfill all the points my web app project runs properly locally and there not any sensitive information that's available public.
The error's that I mentioned were the only ones that I came across that's it.


Pauline P. Narvas (@pawlean) · 2024-08-02

For further debugging, can you try the steps here?

https://vercel.com/docs/errors/FUNCTION_INVOCATION_FAILED