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

后端服务怎么启动 #2

Closed
cordline opened this issue Jul 26, 2023 · 15 comments
Closed

后端服务怎么启动 #2

cordline opened this issue Jul 26, 2023 · 15 comments

Comments

@cordline
Copy link

看到接口请求了sydney 没找到在哪里启动这个服务

@weaigc
Copy link
Owner

weaigc commented Jul 26, 2023

@cordline

git clone https://github.com/weaigc/bingo.git
npm i 
npm run build
npm run start # 这一步会同时启动后端服务

如果你用docker的话可以看 README https://github.com/weaigc/bingo#%E5%AE%89%E8%A3%85%E5%92%8C%E4%BD%BF%E7%94%A8

@cordline
Copy link
Author

@weaigc
UMDR$ZPSU{A% @W8Q( KT22
这个可能是什么原因呢

@weaigc
Copy link
Owner

weaigc commented Jul 26, 2023

@weaigc UMDR$ZPSU{A% @W8Q( KT22 这个可能是什么原因呢

@cordline 你是不是没有走代理,自己搭的话,得用国外的机器,或者通过配置代理。国内是不可以直接访问的。

@cordline
Copy link
Author

@weaigc
image
用了腾讯云的首尔的试了一下 我看了一下接口没有返回东西 大佬知道什么情况不

@weaigc
Copy link
Owner

weaigc commented Jul 26, 2023

@weaigc image 用了腾讯云的首尔的试了一下 我看了一下接口没有返回东西 大佬知道什么情况不

@cordline 链接方便分享一下吗,我看看错误

@cordline
Copy link
Author

@weaigc 地址这个http://43.155.180.67:3000/

@wzx4610
Copy link

wzx4610 commented Jul 27, 2023

@weaigc
错误截图
image

@weaigc
Copy link
Owner

weaigc commented Jul 27, 2023

@weaigc 错误截图 image

目前的 cookie 只能翻墙后获取到的才有用,注意 cookie 域名是 www.bing.com 而不是 cn.bing.com

@weaigc
Copy link
Owner

weaigc commented Jul 27, 2023

@weaigc 错误截图 image
@wzx4610
目前的 cookie 只能翻墙后获取到的才有用,注意 cookie 域名是 www.bing.com 而不是 cn.bing.com。
附:如何验证自己的 cookie 是否有效,看看 https://www.bing.com/turing/conversation/create 打开是不是一个正常展示的 json ,如果不是,则表示当前的 cookie 是无效的。此时只能把服务部署在 hf 上(hf 可以免 cookie)

@cordline
Copy link
Author

@weaigc 这个项目需要本地也开启代理才能正常访问吗 我看演示站点不用

@cordline
Copy link
Author

image
image
image
@weaigc 我现在配置是这样的 服务器是腾讯云的首尔服务器 我想搭一个正常的网络能访问的 现在这个代码要怎么配置可以做到

@weaigc
Copy link
Owner

weaigc commented Jul 28, 2023

@weaigc 这个项目需要本地也开启代理才能正常访问吗 我看演示站点不用
@cordline
更新了认证方式,再试试?

@cordline
Copy link
Author

@weaigc
我用的是ubuntu我在你发的地址那边转完 然后扔到服务器上是这样子的
image
然后我查了一下要加个/啥的
image
这个时候服务器上是可以了 但是我打开网站 设置进去还是不行不知道是不是多了一个/的问题

@cordline
Copy link
Author

@weaigc
image
这是显示是false 不知道什么原因

@weaigc
Copy link
Owner

weaigc commented Jul 29, 2023

@weaigc 我用的是ubuntu我在你发的地址那边转完 然后扔到服务器上是这样子的 image 然后我查了一下要加个/啥的 image 这个时候服务器上是可以了 但是我打开网站 设置进去还是不行不知道是不是多了一个/的问题
@cordline
服务器上配置的的需要转成 base64,网页上提供了转换的功能,你转换好了复制一下

weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
@weaigc weaigc closed this as completed Aug 16, 2023
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

3 participants