Skip to content

fix(wizard): Whack a mole part 10: project-mismatch error accounts for a bogus --project-id - #1040

Merged
edwinyjlim merged 2 commits into
mainfrom
posthog-code/whack-a-mole-10
Aug 4, 2026
Merged

fix(wizard): Whack a mole part 10: project-mismatch error accounts for a bogus --project-id#1040
edwinyjlim merged 2 commits into
mainfrom
posthog-code/whack-a-mole-10

Conversation

@gewenyu99

Copy link
Copy Markdown
Collaborator

Rewrite the authorized-vs-target project mismatch error so a garbage --project-id gets useful advice.

Before: "You authorized project 530702, but setup is targeting project 123. Re-run and grant
         access to project 123 on the authorization screen."   ← 123 is a copy-pasted example; unfollowable
After:  "You authorized project 530702, but setup is targeting project 123 (from --project-id).
         If 123 is not a project you own — a copy-pasted example value, say — re-run without
         --project-id, or with the id shown in your PostHog project settings. If it is yours,
         re-run and grant access to project 123 on the authorization screen."

Run 438989d3 (07-29): user invoked with --project-id 123, authorized their real project, then got told to grant access to 123.


Created with PostHog Code

Run 438989d3 targeted project 123 — a copy-pasted example value — and
the error told the user to grant access to it. Say where the id came
from and when to drop it instead.

Generated-By: PostHog Code
Task-Id: affdea28-7761-4d50-8335-6b32376b1a82
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue
  • /wizard-ci self-driving

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe
  • /wizard-ci self-driving/astro
  • /wizard-ci self-driving/fastapi
  • /wizard-ci self-driving/nuxt
  • /wizard-ci self-driving/react-router
  • /wizard-ci self-driving/sveltekit

Results will be posted here when complete.

@gewenyu99
gewenyu99 marked this pull request as ready for review July 30, 2026 16:22
@gewenyu99
gewenyu99 requested a review from a team as a code owner July 30, 2026 16:22
@edwinyjlim
edwinyjlim merged commit fee3778 into main Aug 4, 2026
16 checks passed
@edwinyjlim
edwinyjlim deleted the posthog-code/whack-a-mole-10 branch August 4, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants