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

Oops, something went wrong Cannot connect to the Refly server, please try again later. #477

Open
cloudmadman123 opened this issue Feb 8, 2025 · 12 comments

Comments

@cloudmadman123
Copy link

Login and Sign up

Oops, something went wrong
Cannot connect to the Refly server, please try again later.

当前无法使用此页面
localhost 未发送任何数据。
ERR_EMPTY_RESPONSE

@pftom
Copy link
Contributor

pftom commented Feb 8, 2025

visit https://docs.refly.ai/zh/guide/self-deploy for self deploy tutorial, set env variable for pass login or signup❤️

@pftom
Copy link
Contributor

pftom commented Feb 8, 2025

@cloudmadman123

@YuJian920
Copy link

YuJian920 commented Feb 8, 2025

visit https://docs.refly.ai/zh/guide/self-deploy for self deploy tutorial, set env variable for pass login or signup❤️

我也遇到了相同的问题,通过 Docker Compose 启动服务之后,任何请求都会被请求到 localhost:5800 中去,而实际上我是想部署在另外的一个服务器中,我在 .env 文件中似乎没有看到相关的修改项

I also encountered the same problem. After starting the service through Docker Compose, any request is routed to localhost:5800, but I actually want to deploy it on another server. I don't seem to see any related modifications in the .env file.

@mrcfps
Copy link
Contributor

mrcfps commented Feb 9, 2025

Login and Sign up

Oops, something went wrong Cannot connect to the Refly server, please try again later.

当前无法使用此页面 localhost 未发送任何数据。 ERR_EMPTY_RESPONSE

Please follow the troubleshooting guide to find the root cause: https://docs.refly.ai/zh/guide/self-deploy#troubleshooting

@mrcfps
Copy link
Contributor

mrcfps commented Feb 9, 2025

visit https://docs.refly.ai/zh/guide/self-deploy for self deploy tutorial, set env variable for pass login or signup❤️

我也遇到了相同的问题,通过 Docker Compose 启动服务之后,任何请求都会被请求到 localhost:5800 中去,而实际上我是想部署在另外的一个服务器中,我在 .env 文件中似乎没有看到相关的修改项

I also encountered the same problem. After starting the service through Docker Compose, any request is routed to localhost:5800, but I actually want to deploy it on another server. I don't seem to see any related modifications in the .env file.

You can set the REFLY_API_URL and COLLAB_URL envs for refly_web container to connect to your custom server endpoint, for example:

REFLY_API_URL=http://11.22.33.44:5800
COLLAB_URL=http://11.22.33.44:5801

Refer to Configuration Doc for details.

@YuJian920
Copy link

YuJian920 commented Feb 9, 2025

visit https://docs.refly.ai/zh/guide/self-deploy for self deploy tutorial, set env variable for pass login or signup❤️

我也遇到了相同的问题,通过 Docker Compose 启动服务之后,任何请求都会被请求到 localhost:5800 中去,而实际上我是想部署在另外的一个服务器中,我在 .env 文件中似乎没有看到相关的修改项
I also encountered the same problem. After starting the service through Docker Compose, any request is routed to localhost:5800, but I actually want to deploy it on another server. I don't seem to see any related modifications in the .env file.

You can set the REFLY_API_URL and COLLAB_URL envs for refly_web container to connect to your custom server endpoint, for example:您可以为 refly_web 容器设置 REFLY_API_URLCOLLAB_URL 环境变量,以连接到您的自定义服务器端点,例如:

REFLY_API_URL=http://11.22.33.44:5800
COLLAB_URL=http://11.22.33.44:5801

Refer to Configuration Doc for details.

Thank you very much for your reply, but after my testing, the problem is still not resolved 😭
I tried directly modifying the docker-compose.yml file to add new environment fields for REFLY_API_URL and COLLAB_URL, and I also tried adding them to the .env file and using the env_file field. Both methods still send requests to localhost:5800😭

@sofs2005
Copy link

Regarding the same issue, the IP address configured in the .env file is not taking effect, and it is still connecting to localhost. The email registration process indicates a failure to connect to the 'refly' service. Furthermore, federated login also redirects to localhost. Is there a local deployment configuration that bypasses the need for registration and login?

@sofs2005
Copy link

visit https://docs.refly.ai/zh/guide/self-deploy for self deploy tutorial, set env variable for pass login or signup❤️

which viariable can pass login or signup?

@mrcfps
Copy link
Contributor

mrcfps commented Feb 10, 2025

visit https://docs.refly.ai/zh/guide/self-deploy for self deploy tutorial, set env variable for pass login or signup❤️

which viariable can pass login or signup?

You can set the AUTH_SKIP_VERIFICATION to true to signup without email verification, which should be the default config in .env.example.

If you are encountering errors like "Cannot connect to Refly server" when deploying on your local machine , please take a look at the Troubleshooting Section for self-deploy.

Please note that deploying Refly on a remote machine (such as EC2) with custom IP or domain is not officially supported and documented yet, and we will catch up on this within a couple of days. We will let you know ASAP when it's ready.

@sofs2005
Copy link

visit https://docs.refly.ai/zh/guide/self-deploy for self deploy tutorial, set env variable for pass login or signup❤️

which viariable can pass login or signup?

You can set the AUTH_SKIP_VERIFICATION to true to signup without email verification, which should be the default config in .env.example.

If you are encountering errors like "Cannot connect to Refly server" when deploying on your local machine , please take a look at the Troubleshooting Section for self-deploy.

Please note that deploying Refly on a remote machine (such as EC2) with custom IP or domain is not officially supported and documented yet, and we will catch up on this within a couple of days. We will let you know ASAP when it's ready.

Since the service is hosted on the server rather than my personal computer, apparently I'll just have to wait for your updates.

@mrcfps
Copy link
Contributor

mrcfps commented Feb 19, 2025

@YuJian920 @sofs2005 Support for deploying on server (via reverse proxy) is now supported, please check out the doc: https://docs.refly.ai/guide/self-deploy.

@YuJian920
Copy link

@YuJian920 @sofs2005 Support for deploying on server (via reverse proxy) is now supported, please check out the doc: https://docs.refly.ai/guide/self-deploy.

It worked! Thank you very much!

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

5 participants