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

claude 有时候会提示 登录超时 #154

Open
xixi-furry opened this issue Jan 5, 2025 · 3 comments
Open

claude 有时候会提示 登录超时 #154

xixi-furry opened this issue Jan 5, 2025 · 3 comments

Comments

@xixi-furry
Copy link

Post "https://claude.xxxx.com/manage-api/auth/oauth_token": dial tcp xxx.xxx.xxx.xxx:443 i/o timeout

日志:

[GIN] 2025/01/05 - 22:31:23 | 200 |      272.19µs |  31.223.184.115 | POST     "/api/share/search"
2025-01-05 22:31:25.576	�[34minfo�[0m	PandoraHelper/internal/middleware/log.go:31	Request	{"trace": "a2ea396cbc7de2c6ca47c7883af144d4", "request_method": "GET", "request_url": "/vite.svg", "request_params": ""}
2025-01-05 22:31:25.576	�[34minfo�[0m	PandoraHelper/internal/middleware/log.go:42	Response	{"trace": "a2ea396cbc7de2c6ca47c7883af144d4", "request_method": "GET", "request_url": "/vite.svg", "request_params": "", "time": "98.094µs"}
[GIN] 2025/01/05 - 22:31:25 | 200 |     115.247µs |  31.223.184.115 | GET      "/vite.svg"
2025-01-05 22:31:40.778	�[31merror�[0m	PandoraHelper/internal/service/share.go:221	LoginShareByPassword error	{"err": "Post \"https://claude.xxxx.com/manage-api/auth/oauth_token\": dial tcp xxx.xxx.xxx.xxx:443: i/o timeout"}
PandoraHelper/internal/service.(*shareService).GetClaudeOauthLoginUrl
	PandoraHelper/internal/service/share.go:221
PandoraHelper/internal/service.(*shareService).GetOauthLoginUrl
	PandoraHelper/internal/service/share.go:75
PandoraHelper/internal/service.(*shareService).LoginShareByPassword
	PandoraHelper/internal/service/share.go:162
PandoraHelper/internal/handler.(*ShareHandler).LoginShare
	PandoraHelper/internal/handler/share.go:36
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
PandoraHelper/internal/server.NewHTTPServer.RequestLogMiddleware.func6
	PandoraHelper/internal/middleware/log.go:32
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
PandoraHelper/internal/server.NewHTTPServer.ResponseLogMiddleware.func5
	PandoraHelper/internal/middleware/log.go:40
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
PandoraHelper/internal/server.NewHTTPServer.CORSMiddleware.func4
	PandoraHelper/internal/middleware/cors.go:21
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/ulule/limiter/v3/drivers/middleware/gin.(*Middleware).Handle
	github.com/ulule/limiter/v3@v3.11.2/drivers/middleware/gin/middleware.go:64
github.com/ulule/limiter/v3/drivers/middleware/gin.NewMiddleware.func1
	github.com/ulule/limiter/v3@v3.11.2/drivers/middleware/gin/middleware.go:35
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	github.com/gin-gonic/gin@v1.9.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.LoggerWithConfig.func1
	github.com/gin-gonic/gin@v1.9.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	github.com/gin-gonic/gin@v1.9.1/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	github.com/gin-gonic/gin@v1.9.1/gin.go:576
net/http.serverHandler.ServeHTTP
	net/http/server.go:3210
net/http.(*conn).serve
	net/http/server.go:2092
2025-01-05 22:31:40.778	�[34minfo�[0m	PandoraHelper/internal/middleware/log.go:42	Response	{"trace": "ac230047ab7bfd3dce9ddd4251383474", "request_method": "POST", "request_url": "/api/login_share", "request_params": "{\"username\":\"admin\",\"password\":\"admin\"}", "time": "30.004249468s"}

开启了反向代理,有个很迷惑的点。这个post的好像是我自己的IP,但是不清楚到底是程序自己请求自己,还是我本地请求出错了?

@nianhua99
Copy link
Owner

开了自带的反代了吗

@xixi-furry
Copy link
Author

开了自带的反代了吗

开了。

@nianhua99
Copy link
Owner

估计和你机器网络有关,也就是你机器访问demo.fuclaude.com存在问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants