lit / lit/lit.dev

Error: Unexpected error

Open
#1,434 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Description

I encountered the following error on lit.dev:

Unexpected error
Error calling GitHub API GET /gists/a9d4af2903477a59c7a0c9c0fd3d75be (HTTP status 401)

Stack trace:

Error: Error calling GitHub API GET /gists/a9d4af2903477a59c7a0c9c0fd3d75be (HTTP status 401)
    at y (https://lit.dev/js/components/litdev-playground-page.js:17:396)
    at async T._loadGist (https://lit.dev/js/components/litdev-playground-page.js:72:4546)
    at async T._syncStateFromUrlHash (https://lit.dev/js/components/litdev-playground-page.js:72:5806)

URL: https://lit.dev/playground/#gist=a9d4af2903477a59c7a0c9c0fd3d75be
Site version: prod-bd81b0c
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

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 by opening the reported playground URL and reading the stack trace references to litdev-playground-page.js, especially _loadGist and _syncStateFromUrlHash. Investigate the GitHub API GET /gists request and determine why this gist produces HTTP 401; done means the reported gist loads without the unexpected error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.