3 days ago
If I try to send a post postman request to my railway service I get 443 error even though I did not setup any security
3 Replies
3 days ago
403 is a status code that your application is returning. There is no scenario where we would send a 403.
I'm going to open this thread up to the community so that they can help you.
3 days ago
443 is not a officially recognized status code.
3 days ago
https
I think it is because my port is set as 8001 but it is trying to access port 443 that is the default https port
If you want to try a request here is the request body:
[
{
"signature": "test-signature-123456789",
"feePayer": "test-wallet-address-123456789",
"tokenTransfers": [
{
"mint": "HoGJyNfpJkRQ1iD6Afu4T9YuHsPMTuWSHRj3B9Hmbonk",
"amount": "1000000",
"fromUserAccount": "test-from-address",
"toUserAccount": "test-to-address"
}
],
"events": {
"swap": {
"innerSwaps": []
}
}
}
]
2 days ago
I will let the community involve themselves in this thread.
2 days ago
Can you provide the snippet of the initial lines of your API file, and the snippet of the Public Networking setting for the deployed service?
Moreover you could configure "healthcheckup endpoint" which acts as the default endpoint that would run as a post-deploy thing, to ensure whether your server is running fine or not. You can refer to this post to know more: https://station.railway.com/questions/node-js-service-failing-to-deploy-with-s-dc58e402#mk2w
I am running my code like this:
monitorSwaps() {
// Use process.env.PORT for Railway, fallback to HELIUS_SWAPS_WEBHOOK_PORT, then 8001
const port = process.env.PORT || HELIUS_SWAPS_WEBHOOK_PORT || 8001;
app.listen(port, "0.0.0.0", () => {
logger.warn({ message: `Helius Webhook server is listening on port [http://0.0.0.0:${port}](http://0.0.0.0:${port})` });
});
}
and I have a variable PORT in my variables set to 8001, also HELIUSSWAPSWEBHOOK_PORT variable is set to 8001
If i sent a request to https://test-launchlab-production.up.railway.app/ I get an error of Error: connect ECONNREFUSED 127.0.0.1:443, why does it say 127.0.0.1?
2 days ago
Do you get the log that "Helius webhook server is listening"?
Also, can you please provide more code from your server file!
Did you tried adding healthcheckup endpoint, as mentioned above: https://station.railway.com/questions/node-js-service-failing-to-deploy-with-s-dc58e402#mk2w?
2 days ago
Great!
2 days ago
!s
Status changed to Solved brody • 2 days ago