Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login to swift package has error #32683

Closed
hiifong opened this issue Nov 30, 2024 · 1 comment · Fixed by #32693
Closed

login to swift package has error #32683

hiifong opened this issue Nov 30, 2024 · 1 comment · Fixed by #32693

Comments

@hiifong
Copy link
Member

hiifong commented Nov 30, 2024

Description

Client log:

swift package-registry login https://git.xxx/api/packages/xxx/swift --username xxx --password xxx
Error: registry login using https://git.xxx/api/packages/xxxx/swift failed: client error 404: 404 page not found

Gitea log:

2024/11/30 16:29:32 ...s/process/manager.go:188:Add() [T] Start 674accec: POST: /api/packages/xxx/swift (request)
2024/11/30 16:29:32 ...eb/routing/logger.go:47:func1() [T] router: started   POST /api/packages/gitea/swift for xxxxxxx:0
2024/11/30 16:29:32 ...rvices/auth/basic.go:72:Verify() [T] Basic Authorization: Attempting login for: hiifong
2024/11/30 16:29:32 ...vices/auth/oauth2.go:36:CheckOAuthAccessToken() [T] oauth2.ParseToken: token is malformed: token contains an invalid number of segments
2024/11/30 16:29:32 ...rvices/auth/basic.go:134:Verify() [T] Basic Authorization: Attempting SignIn for hiifong
2024/11/30 16:29:32 ...rvices/auth/basic.go:150:Verify() [T] Basic Authorization: Logged in user <User 1:hiifong>
2024/11/30 16:29:32 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/packages/xxx/swift for xxxxxxx:0, 404 Not Found in 85.4ms @ http/server.go:2256(GlobalNotFound)
2024/11/30 16:29:32 ...s/process/manager.go:231:remove() [T] Done 674accec: POST: /api/packages/xxx/swift

Gitea Version

1.22.0+rc1-613-ge524f63d58

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

./gitea web

Database

None

@hiifong
Copy link
Member Author

hiifong commented Nov 30, 2024

lunny pushed a commit that referenced this issue Dec 3, 2024
Fix #32683

This PR adds the login endpoint and fixes the documentation links.
KN4CK3R added a commit to KN4CK3R/gitea that referenced this issue Dec 3, 2024
Fix go-gitea#32683

This PR adds the login endpoint and fixes the documentation links.
techknowlogick pushed a commit that referenced this issue Dec 5, 2024
Backport of #32693

Fix #32683

This PR adds the login endpoint and fixes the documentation links.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants