Skip to content

Common errors and troubleshooting

Start at the lowest failing layer. Changing credentials, targeting, and application code at the same time makes a simple network problem harder to isolate.

  1. Resolve the assigned gateway or API hostname from the same host as the application.
  2. Test TCP connectivity to the assigned protocol port.
  3. Run a minimal cURL request with verbose output and no optional targeting.
  4. Record the exact HTTP status, SOCKS5 reply, or connection-close stage.
  5. Add one targeting or session token at a time.
  6. Compare the failing request with a known-good package or user.
  7. Record the UTC time, deployment, resource IDs, and sanitized response before escalating.
Terminal window
curl --verbose \
--proxy http://USERNAME:[email protected]:8000 \
https://api.ipify.org?format=json

Gateway-generated

The proxy rejected authentication, targeting, protocol input, allocation, policy, concurrency, or an internal connection step.

Upstream or destination

An upstream proxy or destination returned the status. Its headers and body can pass through, or a deployment-specific provider rule can replace them.

Client-side transport

DNS, TCP, TLS, or SOCKS negotiation failed before an HTTP response existed. The client may report an EOF, reset, or timeout instead of a status code.

The first table covers statuses emitted by active proxy request paths. Retry only when the request is safe to repeat.

StatusWhen the gateway emits itClient actionRetry
400 Bad RequestHTTP traffic is disabled on this gateway. Malformed HTTP input is handled as 409, not 400.Use a gateway and port that enable HTTP, or switch to an enabled protocol.No, until configuration changes
402 Payment RequiredThe user has no allocatable data, or the allocation is exhausted while the gateway reads or writes a response.Replenish data, verify the assigned order, and start a new connection.After allocation changes
406 Not AcceptableSession length or TTL, package syntax, filter duration, targeting, location, or targeted provider is invalid or unavailable.Remove optional tokens, validate them individually, and rebuild the proxy username.No, with unchanged targeting
407 Proxy Authentication RequiredProxy-Authorization is missing or malformed; credentials, user, package, or targeting record cannot be authenticated.Reissue the package username and proxy password. Confirm that the order and user are active.No, with the same credentials
409 ConflictThe request cannot be read, has no host, uses a blocked direct IP, or the gateway cannot write the response to the client connection.Send a valid proxy-form request with a hostname and inspect the client/network connection.Only after correcting the request or connection
410 GoneProvider credential generation, deadlines, upstream reads/writes, or the initial client response failed after processing began.Open a new connection and preserve the failed request time for diagnostics.Yes, with bounded backoff for idempotent work
417 Expectation FailedAn unexpected username parsing, authentication, or routing error occurred.Retry once, then escalate with deployment, UTC time, and sanitized credentials shape.Limited
429 Too Many RequestsThe package connection limit is reached or the active-connection record cannot be created.Reduce concurrency, close abandoned connections, and apply backoff with jitter.Yes, after capacity is available
451 Unavailable For Legal ReasonsThe requested hostname or top-level domain is blocked by gateway policy.Change the destination or request a policy review.No, with the same destination
500 Internal Server ErrorThe proxy reaches an unspecified internal error or an unmapped error status.Retry safe work once and escalate repeated failures with the UTC time and gateway.Limited
502 Bad GatewayTarget DNS resolution fails while an HTTP request is being transported through a SOCKS5 upstream.Verify the target hostname and resolver reachability.Yes, if the failure is transient
504 Gateway TimeoutNo configured upstream candidate can be dialed. Provider-specific error normalization also defaults to 504.Retry with backoff, broaden targeting, and check provider availability.Yes, with backoff

The proxy contains native response templates for the following statuses, but no active proxy-request path emits them directly. They can still be received from an upstream or produced by deployment-specific provider error overrides.

StatusLikely ownerClient action
403 ForbiddenUpstream policy, destination policy, or a configured overrideVerify account and destination policy; do not retry unchanged.
412 Precondition FailedUpstream or a configured overrideInspect upstream requirements and deployment-specific routing rules.
501 Not ImplementedUpstream or a configured overrideUse a supported feature or protocol.
503 Service UnavailableUpstream, configured override, or the gateway readiness endpointBack off and verify deployment/provider health.

An upstream HTTP response is not restricted to this list. Preserve its sanitized headers and body because provider and destination responses can use any valid HTTP status. A provider rule may also reset the original response and replace it with another configured status.

SOCKS5 does not receive the HTTP statuses above. Diagnose the stage and byte value reported by the client library.

Stage or replyMeaning in the current gatewayClient action
Negotiation 0xFFThe client did not offer username/password authentication.Enable SOCKS5 username/password authentication in the client.
User/password 0x01Authentication failed. Invalid credentials, session, targeting, filter, allocation, or policy failures are intentionally collapsed into one reply.Rebuild credentials with minimal targeting and verify allocation.
REP 0x01General server failure forwarded by a SOCKS5 upstream.Retry with backoff and inspect provider health.
REP 0x02Connection not allowed, forwarded by a SOCKS5 upstream.Review provider or destination policy.
REP 0x03Network unreachable, forwarded by a SOCKS5 upstream.Check provider routing and retry with backoff.
REP 0x04Host unreachable, forwarded by a SOCKS5 upstream.Verify the destination and DNS behavior.
REP 0x05The gateway rejected a malformed request, invalid destination, or routing failure; an upstream can also return connection refused.Validate the destination and retry only if refusal may be transient.
REP 0x06TTL expired, forwarded by a SOCKS5 upstream.Retry with another route or provider.
REP 0x07The requested command is unsupported. The gateway accepts CONNECT and UDP ASSOCIATE.Use a supported command.
REP 0x08The address type is unsupported or conflicts with the enabled SOCKS5/SOCKS5h mode.Use a hostname for SOCKS5h or an IP for SOCKS5, as configured.
EOF or reset before final replyProvider dialing or negotiation failed, an auth packet was malformed, or the connection closed before a SOCKS reply could be written.Record the failing stage and test the same credentials through the HTTP gateway.
Disconnect after successRelay, accounting, or connection-limit handling terminated an already accepted connection.Check concurrency and remaining data, then reconnect with backoff.

When the selected provider supports SOCKS5, its final REP byte is forwarded to the client. Treat non-standard values as provider-specific and include the raw byte in an escalation record.

Platform API responses are JSON contracts and are separate from gateway traffic.

StatusMeaning to investigateDo not do
400Body shape, required field, resource state, or business ruleRetry the same invalid body continuously
401Missing, expired, or invalid API authorizationSend proxy credentials as API credentials
403Role, ownership, or account scopeHide the denial and continue later steps
404Wrong ID, wrong deployment, or inaccessible resource scopeAssume the global resource does not exist
429API request rate exceeded for the deploymentLaunch parallel immediate retries
5xxPlatform service or dependency failureRepeat non-idempotent writes without checking state

The API can return dynamic field arrays in addition to detail, non_field_errors, and translation. Preserve the full sanitized body in internal diagnostics.

FailureCheck
Signature mismatchRaw bytes were verified before JSON parsing; Base64 was not converted to hex
Repeated deliveriesEndpoint returned an error, timed out, or the acknowledgment was lost
Missing individual updateSeveral changes may have been coalesced into one latest-balance event
Incorrect customer mappingUse user.id, user.reseller_id, order.id, and package.id—not user.username alone
Local total differs from reportRun analytics reconciliation for a closed UTC window

Include:

  • deployment and affected API or gateway hostname;
  • UTC start and end time;
  • protocol and sanitized request shape;
  • HTTP status, SOCKS5 stage and reply byte, or transport error;
  • sanitized response headers and body when present;
  • user, order, package, or webhook IDs;
  • whether the failure reproduces with broad targeting;
  • whether analytics and webhook state disagree.

Use Book a Demo / Contact for an implementation review, or browse the generated API Reference for exact operation contracts.