EnixCoda/Gitako

Not working for gitea private repos

devbean opened this issue · 7 comments

Using Gitako with self-hosted gitea and private repos, Gitako icon flashes to disappear. Errors in console:

GET http://192.168.88.30:3080/api/v1/repos/meta/changelogs/git/trees/develop?recursive=1 403 (Forbidden)
Uncaught (in promise) Error: Only signed in user is allowed to call APIs.          content.js:74 
    at zr (content.js:74:117717)

There is no way to add access token because Gitako cannot even open as there is no icon on left side.

Thank you. Will fix it in v3.10.1 soon.

c-my commented

The sidebar shows Access Denied and I got this error in private repo even after setting access token:

GET https://{host}/api/v1/repos/{user_name}/{repo_name}/git/trees/master?recursive=1 404 content.js:74

This may be due to the absence of the field authorization: token {access_token} in the request header.

My gitea version is 1.18.1.

@devbean @c-my v3.10.1 is under review. Please give another try tomorrow. Thank you!

c-my commented

Thanks for the fix!

But still got 404 error and the sidebar shows "Access Denied".

error

access denied

If I edit the failed request and add the authorization: token {access_token} in the headers, the request will success.
The problem may come from here.

error2

@c-my Oh I misread gitea as gitee. And my fix was for another problem for gitee.

v3.10.2 will be available tomorrow. The issue should be fixed this time.

image

c-my commented

Thank you!
The problem is fixed.