Hi all:
I am running Meteor webapp/NGROK on my local to receive messages send from 3rd parties. However, the request from 3rd parties somehow couldn’t forward to my local and always get a “301 Moved Permanently” error.
This is how I set up webapp:
const app = express()
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.raw({ type: 'application/vnd.api+json' }))
Meteor.startup(() => {
app.all('/action-step', async (req, res) => {
res.status(200).send('ok')
})
WebApp.connectHandlers.use(app)
}
})
my NGROK (the Meteor is running on port 3080)
./ngrok http 3080
This is the information I got from NGROK(port 4040):
No problem at all if I deploy it on the AWS, but can’t receive any message from my local.
Any suggestions will be appreciated