Authorization failed: No chunk id map found
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 197
- Forks
- 51
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 94
Description
Steps I followed
-
I run
npx -y @posthog/wizard@latest -
authorized "Default Project" in the opnened browser window
-
was succesfully redirected to the page with URL
http://localhost:8239/callback?code=SOMEcodeHEREwhich says:PostHog login complete! Return to your terminal: the wizard is hard at work on your project█ -
But when I came back to CLI there are errors:
Authorization failed: │ │ │ │ If you think this is a bug in the PostHog wizard, please create an issue: │ https://github.com/posthog/wizard/issues No chunk id map found No chunk id map found │ └ Wizard setup cancelled.
Full log
Here is the full log in CLI from start:
npx -y @posthog/wizard@latest
┌ Welcome to the PostHog setup wizard ✨
│
◆ Detected integration: Astro
┌ PostHog Astro wizard (agent-powered)
│
● We're about to read your project using our LLM gateway.
│
│ .env* file contents will not leave your machine.
│
│ Other files will be read and edited to provide a fully-custom PostHog integration.
│
▲ Claude/Anthropic services are partially degraded.
│
│ Status: Partially Degraded Service
│ Status page: https://status.claude.com
│
│ The wizard may not work reliably while services are degraded.
│
◇ Do you want to continue anyway?
│ Yes
│
◇ Select your PostHog Cloud region
│ US 🇺🇸
│
● If the browser window didn't open automatically, please open the following link to be redirected to PostHog:
│
│ http://localhost:8239/authorize
│
◇ Authorization failed.
│
■ Authorization failed:
│
│
│
│ If you think this is a bug in the PostHog wizard, please create an issue:
│ https://github.com/posthog/wizard/issues
No chunk id map found
No chunk id map found
│
└ Wizard setup cancelled.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing npx -y @posthog/wizard@latest with the Astro integration and follow the authorization flow from http://localhost:8239/authorize through the /callback URL. Trace where No chunk id map found is produced; done means authorization completes without cancelling the wizard, with a regression check for this failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100