dlvhdr / gh-dash

A beautiful CLI dashboard for GitHub 🚀
https://dlvhdr.github.io/gh-dash
MIT License
6.77k stars 191 forks source link

[BUG] Running `gh dash` against GHES gives error message when fetching PRs #372

Open msamendinger opened 1 month ago

msamendinger commented 1 month ago

Describe the bug Trying to run gh dash against a GHES throws an error message. gh dash on github.com works fine for the same install.

2024/05/28 17:19:49 ERRO Task finished with error id="fetching_prs_1_2024-05-28 17:19:48.574355 +0200 CEST m=+0.006721043" err="GraphQL: Something went wrong while executing your query. Please include `678542ab-63a2-4258-9d1f-3a45a71c99b7` when reporting this issue."

Not sure if that's something local but after a fresh install via gh extension install dlvhdr/gh-dash I receive this error message. I'm authenticated to a GHES instance, a gh pr list for a repo works fine. gh auth logout and gh auth login didn't help. It doesn't matter if I'm authenticated with both github.com and the GHES or only the GHES. I'm a bit stuck on how to further debug this as the error message doesn't help much.

To Reproduce Steps to reproduce the behavior:

  1. Install gh-dash gh extension install dlvhdr/gh-dash
  2. gh auth login for GHES
  3. Run gh dash
  4. See error

Expected behavior gh dash shows me a beautiful CLI dashboard for GitHub.

Desktop (please complete the following information):

metasyn commented 1 month ago

I see the same, I tried running with --debug and looking at the log:

9:57AM DEBU <cmd/root.go:59> Logging to debug.log
9:57AM DEBU <ui/ui.go:65> Starting task id="fetching_prs_1_2024-05-28 09:57:45.539965 -0700 PDT m=+0.012621128"
9:57AM DEBU <ui/ui.go:65> Starting task id="fetching_prs_2_2024-05-28 09:57:45.540179 -0700 PDT m=+0.012835493"
9:57AM DEBU <ui/ui.go:65> Starting task id="fetching_prs_3_2024-05-28 09:57:45.540312 -0700 PDT m=+0.012968401"
9:57AM DEBU <data/prapi.go:217> Fetching PRs query="is:open author:@me" limit=20 endCursor=<nil>
9:57AM DEBU <data/prapi.go:217> Fetching PRs query="is:open involves:@me -author:@me" limit=20 endCursor=<nil>
9:57AM DEBU <data/prapi.go:217> Fetching PRs query="is:open review-requested:@me" limit=20 endCursor=<nil>
9:57AM DEBU <ui/ui.go:365> Task finished id="fetching_prs_1_2024-05-28 09:57:45.539965 -0700 PDT m=+0.012621128"
9:57AM ERRO <ui/ui.go:367> Task finished with error id="fetching_prs_1_2024-05-28 09:57:45.539965 -0700 PDT m=+0.012621128" err="GraphQL: Something went wrong while executing your query. Please include `a9c9dcf6-8a82-4000-9ed5-f9aec4cda7dd` when reporting this issue."
9:57AM DEBU <ui/ui.go:365> Task finished id="fetching_prs_3_2024-05-28 09:57:45.540312 -0700 PDT m=+0.012968401"
9:57AM ERRO <ui/ui.go:367> Task finished with error id="fetching_prs_3_2024-05-28 09:57:45.540312 -0700 PDT m=+0.012968401" err="GraphQL: Something went wrong while executing your query. Please include `40a2d817-21bf-49e6-a139-beb5b5d459da` when reporting this issue."
9:57AM DEBU <data/prapi.go:222> Successfully fetched PRs query="is:open review-requested:@me" count=19
9:57AM DEBU <ui/ui.go:365> Task finished id="fetching_prs_2_2024-05-28 09:57:45.540179 -0700 PDT m=+0.012835493"