Cannot access service

giannsaicpibot99
PRO

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

Solved$10 Bounty

3 Replies

giannsaicpibot99
PRO

3 days ago

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


giannsaicpibot99
PRO

3 days ago

The container is the unibot - api


giannsaicpibot99
PRO

3 days ago

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


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.


giannsaicpibot99
PRO

3 days ago

443 sorry


3 days ago

443 is not a officially recognized status code.


giannsaicpibot99
PRO

3 days ago

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


3 days ago

https


giannsaicpibot99
PRO

3 days 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
PRO

3 days ago

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


giannsaicpibot99
PRO

3 days 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
PRO

3 days ago

I am getting connection refused errors


2 days ago

I will let the community involve themselves in this thread.


clashing
FREETop 1% Contributor

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


giannsaicpibot99
PRO

2 days ago

hey what does that mean?


giannsaicpibot99
PRO

2 days 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}](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
PRO

2 days 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
PRO

2 days ago

Still need help with this please


clashing
FREETop 1% Contributor

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?


giannsaicpibot99
PRO

2 days ago

after removing the public domain and regenerating it it worked


clashing
FREETop 1% Contributor

2 days ago

Great!


2 days ago

!s


Status changed to Solved brody 2 days ago