Skip to content

cusor 报错 User is unauthorized #92

Closed
@chuxiangqaz

Description

@chuxiangqaz
  1. 我使用的是 cusor 渠道, 之前还可以使用,现在用不了。
  2. Cookie 也是按照官方抓取的。现在不知道为啥,请大家指教下
2025-01-15 00:09:09 <chatgpt-adapter/relay/llm> cursor/message.go:105 | [INFO] waitResponse ...
2025-01-15 00:09:09 <chatgpt-adapter/relay/llm> cursor/message.go:146 | [ERRO] [unauthenticated] User is unauthorized
2025-01-15 00:09:09 <chatgpt-adapter/core> gin/initializer.go:84 | [INFO] ------ END REQUEST 48510696-5291-460a-9426-6db2134cc6c4 ---------
[GIN] 2025/01/15 - 00:09:09 | 500 |  975.898126ms |    192.168.48.1 | POST     "/v1/chat/completions"
2025-01-15 00:12:30 <chatgpt-adapter/core> gin/initializer.go:77 | [INFO] ------ START REQUEST d143fdec-5234-4ed8-93d9-d5537116ad16 ---------
POST /v1/chat/completions HTTP/1.1
Host: 192.168.54.68:8080
Accept: */*
Accept-Encoding: gzip, deflate, br
Authorization: xxxx
Cache-Control: no-cache
Connection: keep-alive
Content-Length: 341
Content-Type: application/json
User-Agent: PostmanRuntime-ApipostRuntime/1.1.0


2025-01-15 00:12:30 <chatgpt-adapter/core> gin/v1.go:47 | [INFO] curr model: cursor/claude-3-5-sonnet-20241022
2025-01-15 00:12:31 <chatgpt-adapter/relay/llm> cursor/message.go:105 | [INFO] waitResponse ...
2025-01-15 00:12:31 <chatgpt-adapter/relay/llm> cursor/message.go:146 | [ERRO] [unauthenticated] User is unauthorized
2025-01-15 00:12:31 <chatgpt-adapter/core> gin/initializer.go:84 | [INFO] ------ END REQUEST d143fdec-5234-4ed8-93d9-d5537116ad16 ---------
[GIN] 2025/01/15 - 00:12:31 | 500 |  1.425021889s |    192.168.48.1 | POST     "/v1/chat/completions"

响应的是

{
	"error": {
		"message": "[unauthenticated] User is unauthorized"
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions