swagger-api / swagger-api/validator-badge

Can't read from file

Open
#190 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
227
Forks
81
Avg merge
2h 3m
Merged PRs (30d)
1

Description

I am getting the "Can't read from file" error. I see a couple of other related issues, but I am not sure how to further debug this. My specs are available with a quick response time via a direct request from curl or my browser, but the validator can't access them. I have a strong suspicion that it is some setting on Cloudflare that is maybe blocking the validator.

Is there a way to get any more debug information about what the validator sees when it makes the request for my specs? (What HTTP error code does it get, etc?)

Does the validator service make the requests from one or more fixed IP addresses that I can add to my Cloudflare allowlist?

Spec 1:

Spec 2:

Possibly related:

  • #57
  • #87

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.

Research direction

Start with the validator/debug endpoint and reproduce both filterlists.com specification requests, comparing direct browser or curl access with validator access. Review related issues #57 and #87; the work is complete when the validator's HTTP failure details and request source or allowlisting guidance are exposed or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
api, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.