Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

chore(etherscan): add cloudflare captcha error #2116

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Feb 4, 2023

Motivation

new cloudflare error unlocked.

this supports a new cloudflare error variant that occurs when cloudflare asks for a captcha upon an API request.

discovered here https://github.com/foundry-rs/foundry/actions/runs/4091046786/jobs/7054872187

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

@DaniPopes
Copy link
Collaborator

Can't we early return if the response's status code is bad? or is that also inconsistent

@mattsse
Copy link
Collaborator Author

mattsse commented Feb 4, 2023

so less specific error variant and just, NotOk?

I don't think this is more useful.

@mattsse mattsse force-pushed the matt/new-cloudflare-error branch from 7c5f64d to 51b1022 Compare February 4, 2023 11:00
@gakonst gakonst merged commit 56cc3e6 into gakonst:master Feb 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants