# GitHub plugin still encountering 406 error after time-sync resolution

**URL:** <https://community.cloudquery.io/t/github-plugin-still-encountering-406-error-after-time-sync-resolution/345>\
**Category:** CloudQuery Plugins\
**Created:** [February 24, 2024, 1:11pm UTC](https://community.cloudquery.io/t/github-plugin-still-encountering-406-error-after-time-sync-resolution/345 "2024-02-24T13:11:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![neat-kingfish](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@neat-kingfish](https://community.cloudquery.io/u/neat-kingfish)\
**Post date:** [February 24, 2024, 1:11pm UTC](https://community.cloudquery.io/t/github-plugin-still-encountering-406-error-after-time-sync-resolution/345/1 "2024-02-24T13:11:14Z")

</div>

\<@942479022397456425\> So I spent the day yesterday resolving a time-sync issue on our enterprise server and validated that full 10-minute JWTs work.

Anyway, I was able to rule out that potential issue. I went back to test the GitHub plugin and am still seeing the 406 issue.

---

<div class="post-metadata">

**Author:** ![erez](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/erez/32/40_2.png) [@erez](https://community.cloudquery.io/u/erez)\
**Post date:** [February 26, 2024, 11:41am UTC](https://community.cloudquery.io/t/github-plugin-still-encountering-406-error-after-time-sync-resolution/345/2 "2024-02-26T11:41:54Z")

</div>

Thanks for digging into this.

Looking into the Go client docs, they use another approach for app authentication: [GitHub Go Client](https://github.com/google/go-github?tab=readme-ov-file#as-a-github-app). They also mention that some endpoints work with access tokens while others work with JWT tokens. Let me take a look; maybe switching to that documented method makes more sense for us.

At least it’s documented better as supported: [GH Installation](https://github.com/bradleyfalzon/ghinstallation?tab=readme-ov-file#github-enterprise-example).

I opened [this pull request](https://github.com/cloudquery/cloudquery/pull/16872), and there’s a release candidate with those changes currently building.

---

<div class="post-metadata">

**Author:** ![erez](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/erez/32/40_2.png) [@erez](https://community.cloudquery.io/u/erez)\
**Post date:** [February 26, 2024, 1:34pm UTC](https://community.cloudquery.io/t/github-plugin-still-encountering-406-error-after-time-sync-resolution/345/3 "2024-02-26T13:34:27Z")

</div>

Hi 👋 Do you mind trying `v8.0.3-rc1`?

---

<div class="post-metadata">

**Author:** ![neat-kingfish](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@neat-kingfish](https://community.cloudquery.io/u/neat-kingfish)\
**Post date:** [February 26, 2024, 1:51pm UTC](https://community.cloudquery.io/t/github-plugin-still-encountering-406-error-after-time-sync-resolution/345/4 "2024-02-26T13:51:25Z")

</div>

I think it works! I have a new set of errors, but we got past it.  
THANKS!!!

---

<div class="post-metadata">

**Author:** ![erez](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/erez/32/40_2.png) [@erez](https://community.cloudquery.io/u/erez)\
**Post date:** [February 26, 2024, 1:55pm UTC](https://community.cloudquery.io/t/github-plugin-still-encountering-406-error-after-time-sync-resolution/345/5 "2024-02-26T13:55:30Z")

</div>

Wow, I’m happy it works! Let me release it officially then (I’ll use `v8.0.2` as I reverted that one). Thank you for spending the time debugging it. You should be able to use `v8.0.2` as it is officially released with the correct fix.
