Retry is disabled by default for POST
method
#1290
Labels
type:defect
Bugs or weaknesses. The issue has to contain steps to reproduce.
POST
method
#1290
Describe the bug
Retries are disabled by default for the
POST
method. We used a config similar to the one below, intending to have 3 retries:However, Snowplow events were not retried on failure due to the Got defaults:
To Reproduce
Configure Snowplow with 'post' method and retries >= 1.
Expected behavior
If Snowplow is configured with a positive number of retries, then emit should be retried on network error.
Suggested solution
By default, enable retries for GET and POST methods in gotEmitter.
If the
retry
argument is a number (instead of an object), then the following object is passed to Got:Otherwise, if the
retry.methods
is undefined it should default to be enabled for both methods used by Snowplow:Desktop (please complete the following information):
Additional context
@snowplow/node-tracker
version 3.19.0The text was updated successfully, but these errors were encountered: