Skip to content

login to swift package has error #32683

Closed
@hiifong

Description

@hiifong

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions