11ty / 11ty/api-screenshot

Handling timeout

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
123
Forks
47
PR merge metrics
No merged PRs in 30d

Description

  // We need to return 200 here or Firefox won’t display the image
 // HOWEVER a 200 means that if it times out on the first attempt it will stay the default image until the next build.

Could you do a 302 to the default image instead? On a second render, the browser will check it again, since it's a temporary redirect.

Contributor guide

No contributing guide indexed for this repository

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 by locating the screenshot service's timeout response and the handling for the default image. Reproduce a first-attempt timeout and a second render in Firefox, then verify that the timeout returns a temporary redirect to the default image and that the browser checks again.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.