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

docker报错鉴权失败, 钉钉不通我运行在海外节点, #250

Closed
cdh1991 opened this issue Jun 15, 2023 · 23 comments
Closed

docker报错鉴权失败, 钉钉不通我运行在海外节点, #250

cdh1991 opened this issue Jun 15, 2023 · 23 comments
Labels
question Further information is requested

Comments

@cdh1991
Copy link

cdh1991 commented Jun 15, 2023

问题反馈

我运行在海外节点,docker报错
2023/06/15 20:17:56 FATA [strar stream failed: %v {"requestid":"9A845AC9-A689-78F4-8FB7-9FD52DD813D5","code":"authFailed","message":"鉴权失败"}]

@cdh1991 cdh1991 added the question Further information is requested label Jun 15, 2023
@ffinly
Copy link
Contributor

ffinly commented Jun 15, 2023

已知问题,已经通知作者修复

@itissika
Copy link

已经修复成功了吗?目前看仍然有这个问题。

@onekr-billy
Copy link

也遇到了这个问题 目前只能降版本了

@eryajf
Copy link
Owner

eryajf commented Jun 22, 2023

see #263

@eryajf eryajf closed this as completed Jun 22, 2023
@ludy520
Copy link

ludy520 commented Jun 25, 2023

@eryajf 麻烦大佬更新下docker镜像

@eryajf
Copy link
Owner

eryajf commented Jun 25, 2023

@eryajf 麻烦大佬更新下docker镜像

拉取最新的latest镜像就可以了

@ludy520
Copy link

ludy520 commented Jun 25, 2023

@eryajf 多谢大佬😊

@alex-chan
Copy link

好像仍然不行

@eryajf
Copy link
Owner

eryajf commented Jun 26, 2023

首先删除本地镜像,然后重新拉起,如果还是不行,应该就是没有拉取最新的镜像

@jiangdi0924
Copy link

jiangdi0924 commented Jun 26, 2023

删除了历史镜像 重新拉取还是不行 镜像: dockerproxy.com/eryajf/chatgpt-dingtalk:latest
[strar stream failed: %v
{"requestid":"C4D1085F-4422-7DD9-B048-CBF13D8931E2","code":"authFailed","message":"鉴权失败"}]

@eryajf
Copy link
Owner

eryajf commented Jun 26, 2023

删除了历史镜像 重新拉取还是不行 镜像: dockerproxy.com/eryajf/chatgpt-dingtalk:latest [strar stream failed: %v {"requestid":"C4D1085F-4422-7DD9-B048-CBF13D8931E2","code":"authFailed","message":"鉴权失败"}]

直接改用这个试试: registry.cn-hangzhou.aliyuncs.com/ali_eryajf/chatgpt-dingtalk

@huelsgp27
Copy link

还是有这个问题

@jiangdi0924
Copy link

是的

@KevinLoveGitHub
Copy link

+1

@eryajf
Copy link
Owner

eryajf commented Jul 14, 2023

奇怪,为啥有这么多同学有这个问题。

有没有同学愿意提供自己的环境的,请联系我,我来调试看看是咋回事儿

@KevinLoveGitHub
Copy link

大佬,查看邮箱信息

@imhut
Copy link

imhut commented Jul 18, 2023

群辉docker(网络自翻了),海外阿里云HK主机centos7 64bit docker。。。。全部都这个问题,降级版本到1.1.3-1.1.5最新都是这样,不知道咋回事。。。。

@eryajf
Copy link
Owner

eryajf commented Jul 18, 2023

大佬,查看邮箱信息

兄弟,我邮箱没有收到你的信息

@de-conf
Copy link

de-conf commented Jul 18, 2023

大佬,查看邮箱信息

兄弟,我邮箱没有收到你的信息
https://t.me/de_conf
相同问题,麻烦开发者有空联系我排查

主机curl测试正常,结果如下:

curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer xxxxxxxxxxxxx" \
  -d '{
     "model": "gpt-3.5-turbo",
     "messages": [{"role": "user", "content": "Say this is a test!"}],
     "temperature": 0.7
   }'

{
  "id": "chatcmpl-7dblYl1WFnp38G04s7JzkhSfNR034",
  "object": "chat.completion",
  "created": 1689674320,
  "model": "gpt-3.5-turbo-0613",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "This is a test!"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 13,
    "completion_tokens": 5,
    "total_tokens": 18
  }
}

docker log错误如下:

2023/07/18 17:49:55 FATA [strar stream failed: %v
 {"requestid":"5B5A1F24-BF97-78E0-A067-8F8806B357DF","code":"authFailed","message":"鉴权失败"}]
2023/07/18 17:50:01 FATA [strar stream failed: %v
 {"requestid":"12CFF4B1-E09A-7D70-BA42-3D3894610ECB","code":"authFailed","message":"鉴权失败"}]
2023/07/18 17:50:07 FATA [strar stream failed: %v
 {"requestid":"B4FA52F9-5AD1-75B9-8BC4-56D4B9A50249","code":"authFailed","message":"鉴权失败"}]
2023/07/18 17:50:13 FATA [strar stream failed: %v
 {"requestid":"4ABBEC2E-8880-7D56-848D-5C3C53D2E31B","code":"authFailed","message":"鉴权失败"}]
2023/07/18 17:50:20 FATA [strar stream failed: %v
 {"requestid":"A18C86A8-80F1-77BB-91A6-C8684CCED126","code":"authFailed","message":"鉴权失败"}]
2023/07/18 17:50:27 FATA [strar stream failed: %v
 {"requestid":"09DE2F6C-85CA-78F1-AF6B-EEB3FEB786F1","code":"authFailed","message":"鉴权失败"}]
2023/07/18 17:50:37 FATA [strar stream failed: %v
 {"requestid":"B5120ACA-1875-79F3-96C3-10B8D27487E1","code":"authFailed","message":"鉴权失败"}]

@de-conf
Copy link

de-conf commented Jul 18, 2023

https://hub.docker.com/r/eryajf/chatgpt-dingtalk/tags

官方 dockerhub 镜像更新与10天之前? 或许该换到 阿里docker 镜像?
registry.cn-hangzhou.aliyuncs.com/ali_eryajf/chatgpt-dingtalk:latest

未解决,问题依旧!

2023/07/18 21:31:14 FATA [strar stream failed: %v
 {"requestid":"22B36031-DA46-7760-93FE-BD10089FB22B","code":"authFailed","message":"鉴权失败"}]

@de-conf
Copy link

de-conf commented Jul 18, 2023

@eryajf 请求协助

@imhut
Copy link

imhut commented Jul 19, 2023

这个问题终于解决了,可能还是出在base_url上,今天尝试了一下配置base_url,因为之前用的机器都是翻过的网络或者海外的机器,所以就没考虑到这个的问题,于是今天在上次报错的阿里云HK上反代了一下api.openai.com这个URL(其实以前测试别的程序已经有了),于是直接在base_url里面配置了,终于不再报错“鉴权失败”了,但是还是有问题:
`nohup: ignoring input
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x774eef]

goroutine 1 [running]:
github.com/charmbracelet/log.(Logger).log(0x8?, 0x961fd60?, {0xe62f20?, 0xc0057f8b88?}, {0x0?, 0xe85cc0?, 0xc00961fd01?})
/go/pkg/mod/github.com/charmbracelet/[email protected]/logger.go:52 +0x4f
github.com/charmbracelet/log.(Logger).Fatal(0xc009718f00?, {0xe62f20?, 0xc0057f8b88?}, {0x0?, 0x203000?, 0xc000003860?})
/go/pkg/mod/github.com/charmbracelet/[email protected]/logger.go:318 +0x3c
github.com/eryajf/chatgpt-dingtalk/pkg/logger.Fatal(...)
/github/workspace/pkg/logger/logger.go:41
github.com/eryajf/chatgpt-dingtalk/config.LoadConfig()
/github/workspace/config/config.go:264 +0x276
github.com/eryajf/chatgpt-dingtalk/public.InitSvc()
/github/workspace/public/public.go:20 +0x1d
main.init.0()
/github/workspace/main.go:23 +0x19`
实在是不知道那里问题了,直接用的config.yml
就配置了:
run_mode: "stream"
api_key:“********”
base_url:“
********”
app_secrets:[***********]
credentials:
下面参数

@raylax
Copy link

raylax commented Jan 19, 2024

未设置clinetIdclientSecret可能会导致此错误

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

No branches or pull requests