chatgpt-web-dev / chatgpt-web

A third-party ChatGPT Web UI page built with Express and Vue3, through the official OpenAI completion API. / 用 Express 和 Vue3 搭建的第三方 ChatGPT 前端页面, 基于 OpenAI 官方 completion API.
https://chatgpt-web.dev
MIT License
1.6k stars 440 forks source link

docker部署报错500,但是可以跳转 #447

Closed fangjuncao closed 5 months ago

fangjuncao commented 5 months ago

image

容器日志如下 Server is running on port 3002 auth middleware getUserId err from token undefined Cannot read properties of undefined (reading 'replace') auth middleware getUserId err from token undefined Cannot read properties of undefined (reading 'replace')

ywk94 commented 5 months ago

这个bug一直没人修

fangjuncao commented 5 months ago

image 223d6dde9b0342d7991162854d0351fc 请查看,谢谢

fangjuncao commented 5 months ago

[image: 223d6dde9b0342d7991162854d0351fc.png] [image: 223d6dde9b0342d7991162854d0351fc.png] 请查看,谢谢

Kerwin1202 @.***> 于2024年3月2日周六 17:28写道:

如果还会的话,提供下 下面两个截图里 请求头 request header 主要是 Authorization 这个属性 ,目前服务器 发现这个数据读取不到,所以会报错 image.png (view on web) https://github.com/chatgpt-web-dev/chatgpt-web/assets/16319833/cefe649b-fc14-4603-80d6-8b6a8961ebc5 image.png (view on web) https://github.com/chatgpt-web-dev/chatgpt-web/assets/16319833/12c76a56-71a4-4884-bfbe-399a9ad80a6d

— Reply to this email directly, view it on GitHub https://github.com/chatgpt-web-dev/chatgpt-web/issues/447#issuecomment-1974745104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AURAJ52IAOPRHLPGEW2JRCLYWGLURAVCNFSM6AAAAABECFFKXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUG42DKMJQGQ . You are receiving this because you authored the thread.Message ID: @.***>

m0eak commented 5 months ago

image 223d6dde9b0342d7991162854d0351fc 请查看,谢谢

我拉了最新的还是报这个错,日志里也没有报错

BobDu commented 5 months ago

我拉了最新的还是报这个错,日志里也没有报错

辛苦点击5xx页面的 Go to Home 按钮。应该是能回到主页。

看一下主页左下角使用的版本号。

image

最新的版本。 跳转500并且日志这个报错基本确定是成功修复了。

auth middleware getUserId err from token undefined Cannot read properties of undefined (reading 'replace')

怀疑还是没有拉到最新的镜像。执行命令确保成功拉到了最新的镜像。

docker pull kerwin1202/chatgpt-web
docker pull chatgptweb/chatgpt-web
m0eak commented 5 months ago

我拉了最新的还是报这个错,日志里也没有报错

辛苦点击5xx页面的 Go to Home 按钮。应该是能回到主页。

看一下主页左下角使用的版本号。

image

最新的版本。 跳转500并且日志这个报错基本确定是成功修复了。

auth middleware getUserId err from token undefined Cannot read properties of undefined (reading 'replace')

怀疑还是没有拉到最新的镜像。执行命令确保成功拉到了最新的镜像。

docker pull kerwin1202/chatgpt-web
docker pull chatgptweb/chatgpt-web

进去了,但是直接就是聊天界面了,没有注册什么的,这个正常吗,,dockercompose里开启注册写的也是true

BobDu commented 5 months ago

进去了,但是直接就是聊天界面了,没有注册什么的,这个正常吗,,dockercompose里开启注册写的也是true

AUTH_SECRET_KEY 有设置吗?

m0eak commented 5 months ago

进去了,但是直接就是聊天界面了,没有注册什么的,这个正常吗,,dockercompose里开启注册写的也是true

AUTH_SECRET_KEY 有设置吗?

好了,谢谢