a year ago
One of my consumer apps (hosted on another platform) gets hanging TCP connections to 35.212.XX.XX:443 and eventually throws ETIMEDOUT whenever the edge proxy is enabled.
83 Replies
My app is stable without it , there's no reason whatsoever why I'd want this thing enabled. Can I please opt out of the feature?
a year ago
What are you hosting?
And no- we've messaged the migration that we are moving off of the legacy proxy 9 times. We are only maintaining the new proxy moving forward.
a year ago
additionally, the new proxy has always been used for TCP ever since the platform introduced TCP support.
whenever I use the new proxy, the connection to this ip 35.212.XX.XX:443 hangs
a year ago
Gotcha- this is for TCP connections?
a year ago
Have you considered using the TCP proxy?
Hmm not really. I don’t see the need for it though, unless your edge proxy is unstable somehow
Which frankly seems to be the case since the issue only arises when the option is enabled
a year ago
It could be, or it could be Envoy doing something masking a packet that's malformed.
a year ago
The previous proxy
a year ago
Anyway, we won't cut everyone over until we have fixed everything in the new one.
a year ago
However, slamming that switch back won't stop the inevitable, so glad you reported this.
a year ago
I would encourage you to use the TCP proxy for your 443 connection, and see if that helps.
a year ago
If it resolves that way- then we might have to do something like a TCP -> HTTPS bridge
I’m not even doing a long lived connection though—I’m using the custom dns I assigned on railway
a year ago
Oh brother
a year ago
Horrors beyond my comprehension
a year ago
Go on 🙂
And the timeout happens after the dns is resolved ( the asn for 35.212.xx.xx is gcp)
Should I be looking for this somewhere or should I just spin up a proxy server?
a year ago
No need- you can use the setting under network
a year ago
Wondering why you are running your own local DNS?
a year ago
are you aware that Railway has a internal network for you for service to service comms?
a year ago
okok
a year ago
usecase?
a year ago
which?
a year ago
You could use Tailscale to bridge the two networks
a year ago
But!
a year ago
Lets leave you on legacy for a day or two
a year ago
and we can look into this and fix the core bug
a year ago
!t
a year ago
This thread has been escalated to the Railway team.
Status changed to Awaiting Railway Response angelo-railway • over 1 year ago
Status changed to Awaiting User Response Railway • over 1 year ago
seems I'll just have to move to another hosting platform lol, everytime I check my app is broken due to this option going back on
a year ago
we would really appreciate it if you could provide a minimal reproducible example, because as it stands no one has yet to report anything similar, aka we have nothing to go off of to fix this
I mean honestly I don't even know how to get started on that. My API still works, but when the new edge proxies a higher % of requests will hang and fail to the point where they don't even reach my server
a year ago
can you tell me where you are making these requests from, and what exactly is making the request?
are you chaining multiple services together? if so i would use open telemtry (or whatever alternative you use) and see the response time from service -> service on edge and not on edge
on the internal network it shouldnt matter but sometimes the edge was slower for me on external
a year ago
@Brilew - Update on this, considering we only have a single report of this issue across our nearly half a million domains, we would need a reproducible example here, otherwise we will be proceeding with the migration and removing the option to switch back to legacy.
@blank (revived) and I get this TIMEOUT error too, we reported it in another thread a long time ago and our fix was to stick to Legacy network, though that option seems to be removed now. Since that option is removed, our semi working solution is to use http proxies when making requests from another hosting platform to Railway.
This happens when sending a lot of requests from a single IP to Railway. It was never a problem in Legacy, not sure why it is now.
Note: even with 5k proxies rotating, we still get timeout errors. Not often but it’ll come here and there
a year ago
do you happen to know how many RPS you are doing?
a year ago
where are you making requests from?
a year ago
is this reproducible? (without proxies)
here's a quick GPT'd code that mimics what we're doing:
const axios = require('axios');
// Your API endpoint
const apiUrl = 'https://your-api-endpoint.com/your-endpoint';
// Data to be sent in the POST request
const requestData = {
key1: 'value1',
key2: 'value2'
};
// Function to send a POST request
async function sendPostRequest() {
try {
const response = await axios.post(apiUrl, requestData);
console.log(`Status: ${response.status}, Data: ${JSON.stringify(response.data)}`);
} catch (error) {
console.error(`Error: ${error.message}`);
}
}
// Start sending 2 POST requests per second
setInterval(() => {
sendPostRequest(); // First request
setTimeout(sendPostRequest, 100); // Second request after 100ms
}, 1000);i may have exaggerated on 10 RPS, more like no more than 3 RPS
a year ago
and in this scenario this code is running on NAP?
a year ago
well unfortunately theres nothing we can do here without a reproducible example
considering OP is running on DO, i don't think it's provider specific so I guess localhost would work too
unless Railway checks the quality of IPs? Idk if DO or NAP IPs* are flagged in any way (again, no issues on Legacy)
a year ago
if i have to run something for a week to see anything happen that would not qualify as reproducible
a year ago
sorry but no, going to close this out, feel free to open another thread if you can come up with a reproducible example.
a year ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • over 1 year ago