YouTrack Integration Fails with "HTTP 403 Forbidden"

I’m using Gitea Version: [1.17.0] with YouTrack Build 2022.2.52342 Wed, Jul 27, 2022

I generated an Access Token using the same user account that owns the repo I want to track, following the instructions here: Gitea Integration | YouTrack Server Documentation

I get error “HTTP 403 Forbidden” when adding the new VCS integration.

image

Maybe you need to send it to youtrack forum.

I did and they said this error comes from Gitea API. I tested making an API call following this doc; API Usage - Docs

I did get the unauthorized error like seen in this issue: API calls returning 401 Unauthorized · Issue #13484 · go-gitea/gitea · GitHub