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

/socket.io/?userId 接口一直出现{"code":1,"message":"Session ID unknown"} #82

Closed
jiangf8686 opened this issue May 27, 2021 · 3 comments
Labels
question Further information is requested

Comments

@jiangf8686
Copy link

在本地部署,不会出现问题。
在阿里云服务器部署,一直出现{"code":1,"message":"Session ID unknown"}的错误。
麻烦看下啦,谢谢。

@genalhuang
Copy link
Owner

在本地部署,不会出现问题。
在阿里云服务器部署,一直出现{"code":1,"message":"Session ID unknown"}的错误。
麻烦看下啦,谢谢。

前端能访问的情况 得看看后端是不是通过npm run pm2启动的

@genalhuang genalhuang added the question Further information is requested label May 31, 2021
@jiangf8686
Copy link
Author

在本地部署,不会出现问题。
在阿里云服务器部署,一直出现{"code":1,"message":"Session ID unknown"}的错误。
麻烦看下啦,谢谢。

前端能访问的情况 得看看后端是不是通过npm run pm2启动的

找到原因了,是因为,服务端的代码放在了nginx 的html 目录导致。谢谢你的回复

@genalhuang
Copy link
Owner

在本地部署,不会出现问题。
在阿里云服务器部署,一直出现{"code":1,"message":"Session ID unknown"}的错误。
麻烦看下啦,谢谢。

前端能访问的情况 得看看后端是不是通过npm run pm2启动的

找到原因了,是因为,服务端的代码放在了nginx 的html 目录导致。谢谢你的回复

哈哈哈哈哈 你绝了

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

2 participants