Express.js app doesn't work

Post all HTML related questions here. No support.

Moderator: Project members

Post Reply
Message
Author
andsiand
500 Command not understood
Posts: 3
Joined: 2022-02-02 15:40

Express.js app doesn't work

#1 Post by andsiand » 2022-02-02 15:45

Hello, i made an express.js app, basically a webhook that when receives a post request, it sends an email when some conditions are met.

Everything works well locally, tested with ngrok and postman.

When i upload it on Filezilla server of my website, in a folder specifically made for this objective "mywebsite/webhook/" test, i get
403 - forbidden if i make a post request on folder url
405 - method not allowed if i make a post request on the server.js file inside the folder

I am not a developer and not expert in filezilla. What am i missing to make the webhook work as it did locally?

Also: searching online, looks like i shouldn't upload the node modules folder since i have the package-json file. Do i need to do some npm install somewhere, or it is automatic?
Thanks

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Express.js app doesn't work

#2 Post by botg » 2022-02-02 18:09

This has nothing to do with FileZilla.

andsiand
500 Command not understood
Posts: 3
Joined: 2022-02-02 15:40

Re: Express.js app doesn't work

#3 Post by andsiand » 2022-02-03 08:57

Uhm, i thought since locally it works, and on filezilla it doesn't, there might be some permission/authorization issue or something i am missing to make it work live.
Well, if anyone has some advice that can point me in the right direction, i'll be grateful.
Thanks anyways!

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Express.js app doesn't work

#4 Post by botg » 2022-02-03 09:39

A start would be to check your webserver configuration.

andsiand
500 Command not understood
Posts: 3
Joined: 2022-02-02 15:40

Re: Express.js app doesn't work

#5 Post by andsiand » 2022-02-03 09:53

Thanks, you're pointing to the fact that my web server might not be able to run node js applications right?

User avatar
boco
Contributor
Posts: 26936
Joined: 2006-05-01 03:28
Location: Germany

Re: Express.js app doesn't work

#6 Post by boco » 2022-02-03 10:24

Exactly.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Post Reply