Outbound HTTP Requests Blocked After Payment - Service: apipix Dear Railway Support Team,
carlosmontana1771
HOBBYOP

3 months ago

I am experiencing an issue with my deployed service where outbound HTTP requests are being blocked, even after resolving a payment issue.

Service Details:

- Service Name: apipix

- Project: zoological-embrace

- Environment: production

- URL: apipix-production.up.railway.app

- Repository: Carlosmontana1771/apipix

Issue Description:

My Node.js API service is unable to make outbound HTTP requests to external APIs. Specifically, when my service tries to make POST requests to https://app.dustpay.com.br/api/v1/gateway/pix/receive, it receives a 403 Forbidden error with an HTML error page instead of the expected JSON response.

Error Details:

- Error Code: 403 Forbidden

- Error Page Title: "Acesso bloqueado" (Access blocked)

- Error Message: "Não foi possível completar sua solicitação" (Could not complete your request)

- Error Page URL: Contains /_errors/403.js script

Timeline:

1. Initially had a "subscription past due" warning

2. Updated payment method and resolved outstanding invoices

3. Performed redeploy of the service

4. Issue persists - outbound requests still blocked

What I've Verified:

Service health endpoint works: /api/health returns 200 OK

Inbound requests to my API work correctly

External API (DustPay) works when tested directly from my local machine

All environment variables are correctly configured

No security restrictions found in Networking settings

Service is properly deployed and running

Log Evidence:

The logs show:

- My API receives the request successfully

- Processes the payment data correctly

- Attempts to make outbound request to DustPay

- Receives HTML error page instead of JSON response

- Error: "DustPay Response Error: <!doctype html>"

Expected Behavior:

My service should be able to make outbound HTTP requests to external APIs without restrictions.

Request:

Could you please investigate why outbound HTTP requests are being blocked for my service? This appears to be a platform-level restriction that was not removed after resolving the payment issue.

Additional Information:

- The external API I'm trying to reach works perfectly when tested directly

- This is a legitimate business use case for a payment processing integration

- The service was working before the payment issue occurred

Thank you for your assistance.

Best regards,

Carlos Montana
carlosmotana1771

Closed

5 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

3 months ago

Hello,

We do not block outbound HTTPS under any circumstance.

This would be the 3rd party service blocking your requests.

Best,

Brody


Status changed to Awaiting User Response Railway 3 months ago


carlosmontana1771
HOBBYOP

3 months ago

Hello Brody,

Thank you for your response. However, I have evidence that contradicts your statement.

Evidence from Railway logs:

The logs show that Railway is returning its own 403 error page, not our API:

```

Erro ao gerar QR Code PIX: <!doctype html>

```

HTML Error Page Details:

- Railway's own error page with src="/_errors/403.js"

- Portuguese message: "Se o problema persistir, entre em contato com o nosso suporte"

- This is Railway's proxy/load balancer blocking the request, not our API

Test Results:

- Direct DustPay API call: 200 OK (works perfectly)

- Our API health check: 200 OK (API is running)

- Our API PIX endpoint: 403 Forbidden (Railway's error page)

Conclusion:

Railway's proxy is blocking requests to our /api/pix/qrcode endpoint before they reach our application code. The 403 response is coming from Railway's infrastructure, not from our API or the third-party service.

Could you please investigate this proxy-level blocking issue?

Best regards,


Status changed to Awaiting Railway Response Railway 3 months ago


brody
EMPLOYEE

3 months ago

Respectfully, your AI assistant is leading you in the wrong direction.

We (Railway) do not have the ability to return a 403 on behalf of external services (dustpay).

This is the external service (dustpay) returning a 403.

You would need to reach out to Dustpay and ask them why they are blocking your requests.


Status changed to Awaiting User Response Railway 3 months ago


carlosmontana1771
HOBBYOP

3 months ago

ok, thanks


Status changed to Awaiting Railway Response Railway 3 months ago


Status changed to Closed brody 3 months ago


Loading...