Using proxy + server returns error = endless spam

Open
#1,101 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react-native, typescript
Domain
mobile, networking

Research direction

The issue names no files or tests; begin by locating the proxy request and retry handling in the client, then trace what happens after a valid error response. Done means failed proxy requests no longer produce rapid repeated attempts and instead follow a delay that grows from about 100 ms toward a few minutes.

Written by the indexing model from the issue text.

Description

bug investigate

If using proxy to send data to Segment through a custom URL, if the endpoint returns a valid error, the client keeps spamming the endpoint with no idea of pause between failed requests.

It makes sense to have a delay between attempts, which would be dynamic and go from 100 ms to couple of minutes.

This can be considered a feature request, but at the same time it's very fundamental and might lead to close-to-endless amount of requests, so I'd consider this as a bug.

Thanks.

Dominant language
TypeScript
Stars
383
Forks
206
Avg merge
14h 45m
Merged PRs (30d)
11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from segmentio/analytics-react-native

All issues in segmentio/analytics-react-native

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.