Please provide a detailed description of the error or issue you encountered. / 请详细描述您遇到的错误或问题。
When deployed on a remote server, a port forwarding problem was encountered.
WebSocket connection to 'ws://localhost:8090/ws/base/31e4a100176c4d4491323d58a07026b9?user_id=guest&token=xagent&description=%E8%AF%A6%E7%BB%86%E4%BB%8B%E7%BB%8D%E4%B8%80%E4%B8%8B%E5%8E%9F%E5%AD%90' failed:
(anonymous) @ index-77f83ba5.js:30
W @ index-77f83ba5.js:30
(anonymous) @ index-77f83ba5.js:30
(anonymous) @ index-77f83ba5.js:30
Steps to Reproduce / 复现步骤
Please provide the specific steps to reproduce the error. / 请提供复现错误的具体步骤。
I directly pulled the image on docker hub and deployed it on the remote server. 5173 had no problem accessing it.
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><link rel="icon" type="image/svg+xml" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="keyword" content="X-Agent,XAgent,Xagent。ModelForce,CPM大模型,Big Models for Everyone,OpenBMB,cpmlive,CPM-Live,cpmbee,CPM-Bee,人工智能,清华大学NLP实验室,大模型,nlp,自然语言,推理,训练"><meta name="description" content="XAgent - powered by THUNLP, large models for everyone"><title>XAgent</title><script src="/third/notebook-js/vendor/es5-shim.min.js"></script><script src="/third/notebook-js/vendor/marked.min.js"></script><script src="/third/notebook-js/vendor/purify.min.js"></script><script src="/third/notebook-js/vendor/ansi_up.min.js"></script><script src="/third/notebook-js/vendor/prism.min.js"></script><script src="/third/notebook-js/vendor/katex.min.js"></script><script src="/third/notebook-js/vendor/katex-auto-render.min.js"></script><script src="/third/notebook-js/vendor/notebook.min.js"></script><link rel="stylesheet" href="/third/notebook-js/styles/vendor/katex.min.css"/><link rel="stylesheet" href="/third/notebook-js/styles/vendor/prism.css"/><link rel="stylesheet" href="/third/notebook-js/styles/notebook.css"/><script type="module" crossorigin src="/assets/index-77f83ba5.js"></script><link rel="stylesheet" href="/assets/index-78a28ac9.css"><body><div id="app"></div><script src="/third/mathjax/tex-mml-chtml.js"></script></body></head></html>
However, the port forwarding problem occurs when the front and back end interact.
WebSocket connection to 'ws://localhost:8090/ws/base/31e4a100176c4d4491323d58a07026b9?user_id=guest&token=xagent&description=%E8%AF%A6%E7%BB%86%E4%BB%8B%E7%BB%8D%E4%B8%80%E4%B8%8B%E5%8E%9F%E5%AD%90' failed: (anonymous) @ index-77f83ba5.js:30 W @ index-77f83ba5.js:30 (anonymous) @ index-77f83ba5.js:30 (anonymous) @ index-77f83ba5.js:30
Using ssh -L solves this problem, but how do I fix it by modifying the configuration of the project? Please offer your help.
Expected Behavior / 预期行为
Describe the behavior you expected to see. / 请描述您期望的正确行为。
Environment / 环境信息
Operating System / 操作系统:
Python Version / Python 版本:
Other Relevant Information / 其他相关信息:
Error Screenshots or Logs / 错误截图或日志
If possible, please provide relevant screenshots or logs of the error. / 如果可能,请提供相关的错误截图或日志文件。
Additional Notes / 其他备注
If you have any additional information or notes, please add them here. / 如果有其他补充信息,请在此处添加。
Issue Description / 问题描述
Please provide a detailed description of the error or issue you encountered. / 请详细描述您遇到的错误或问题。
When deployed on a remote server, a port forwarding problem was encountered.
WebSocket connection to 'ws://localhost:8090/ws/base/31e4a100176c4d4491323d58a07026b9?user_id=guest&token=xagent&description=%E8%AF%A6%E7%BB%86%E4%BB%8B%E7%BB%8D%E4%B8%80%E4%B8%8B%E5%8E%9F%E5%AD%90' failed: (anonymous) @ index-77f83ba5.js:30 W @ index-77f83ba5.js:30 (anonymous) @ index-77f83ba5.js:30 (anonymous) @ index-77f83ba5.js:30
Steps to Reproduce / 复现步骤
Please provide the specific steps to reproduce the error. / 请提供复现错误的具体步骤。
I directly pulled the image on docker hub and deployed it on the remote server. 5173 had no problem accessing it.
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><link rel="icon" type="image/svg+xml" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="keyword" content="X-Agent,XAgent,Xagent。ModelForce,CPM大模型,Big Models for Everyone,OpenBMB,cpmlive,CPM-Live,cpmbee,CPM-Bee,人工智能,清华大学NLP实验室,大模型,nlp,自然语言,推理,训练"><meta name="description" content="XAgent - powered by THUNLP, large models for everyone"><title>XAgent</title><script src="/third/notebook-js/vendor/es5-shim.min.js"></script><script src="/third/notebook-js/vendor/marked.min.js"></script><script src="/third/notebook-js/vendor/purify.min.js"></script><script src="/third/notebook-js/vendor/ansi_up.min.js"></script><script src="/third/notebook-js/vendor/prism.min.js"></script><script src="/third/notebook-js/vendor/katex.min.js"></script><script src="/third/notebook-js/vendor/katex-auto-render.min.js"></script><script src="/third/notebook-js/vendor/notebook.min.js"></script><link rel="stylesheet" href="/third/notebook-js/styles/vendor/katex.min.css"/><link rel="stylesheet" href="/third/notebook-js/styles/vendor/prism.css"/><link rel="stylesheet" href="/third/notebook-js/styles/notebook.css"/><script type="module" crossorigin src="/assets/index-77f83ba5.js"></script><link rel="stylesheet" href="/assets/index-78a28ac9.css"><body><div id="app"></div><script src="/third/mathjax/tex-mml-chtml.js"></script></body></head></html>
However, the port forwarding problem occurs when the front and back end interact.
WebSocket connection to 'ws://localhost:8090/ws/base/31e4a100176c4d4491323d58a07026b9?user_id=guest&token=xagent&description=%E8%AF%A6%E7%BB%86%E4%BB%8B%E7%BB%8D%E4%B8%80%E4%B8%8B%E5%8E%9F%E5%AD%90' failed: (anonymous) @ index-77f83ba5.js:30 W @ index-77f83ba5.js:30 (anonymous) @ index-77f83ba5.js:30 (anonymous) @ index-77f83ba5.js:30
Using ssh -L solves this problem, but how do I fix it by modifying the configuration of the project? Please offer your help.
Expected Behavior / 预期行为
Describe the behavior you expected to see. / 请描述您期望的正确行为。
Environment / 环境信息
Error Screenshots or Logs / 错误截图或日志
If possible, please provide relevant screenshots or logs of the error. / 如果可能,请提供相关的错误截图或日志文件。
Additional Notes / 其他备注
If you have any additional information or notes, please add them here. / 如果有其他补充信息,请在此处添加。