Cannot access service
giannsaicpibot99
PROOP

7 months 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

Solved$10 Bounty

22 Replies

giannsaicpibot99
PROOP

7 months ago

88650658-638b-4d47-8fab-a98e65abea9a


giannsaicpibot99
PROOP

7 months ago

The container is the unibot - api


giannsaicpibot99
PROOP

7 months ago

I can send you the request body if you want to try


7 months 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.


giannsaicpibot99
PROOP

7 months ago

443 sorry


7 months ago

443 is not a officially recognized status code.


giannsaicpibot99
PROOP

7 months ago

And if a generate a public url do i use http or https?


7 months ago

https


giannsaicpibot99
PROOP

7 months ago

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


giannsaicpibot99
PROOP

7 months ago

Do you know how I can send a request to the specific port?


giannsaicpibot99
PROOP

7 months ago

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": []
}
}
}
]


giannsaicpibot99
PROOP

7 months ago

I am getting connection refused errors


7 months ago

I will let the community involve themselves in this thread.


clashing
HOBBY

7 months 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


giannsaicpibot99
PROOP

7 months ago

hey what does that mean?


giannsaicpibot99
PROOP

7 months ago

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}` });
    });
}

and I have a variable PORT in my variables set to 8001, also HELIUSSWAPSWEBHOOK_PORT variable is set to 8001


giannsaicpibot99
PROOP

7 months ago

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?


giannsaicpibot99
PROOP

7 months ago

Still need help with this please


clashing
HOBBY

7 months 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?


giannsaicpibot99
PROOP

7 months ago

after removing the public domain and regenerating it it worked


clashing
HOBBY

7 months ago

Great!


7 months ago

!s


Status changed to Solved brody 8 months ago


Loading...