Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrying inside afterResponse hook should trigger beforeRetry hook #918

Closed
szmarczak opened this issue Nov 4, 2019 · 0 comments · Fixed by #921
Closed

Retrying inside afterResponse hook should trigger beforeRetry hook #918

szmarczak opened this issue Nov 4, 2019 · 0 comments · Fixed by #921
Labels
enhancement This change will extend Got features ✭ help wanted ✭

Comments

@szmarczak
Copy link
Collaborator

Just add

					for (const hook of options.hooks.beforeRetry) {
						// eslint-disable-next-line no-await-in-loop
						await hook(options, error, retryCount);
					}

and make some tests.

@szmarczak szmarczak added enhancement This change will extend Got features ✭ help wanted ✭ labels Nov 4, 2019
@szmarczak szmarczak mentioned this issue Nov 12, 2019
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This change will extend Got features ✭ help wanted ✭
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant