Skip to content

Commit

Permalink
fix faq
Browse files Browse the repository at this point in the history
  • Loading branch information
nowinkeyy committed Nov 27, 2024
1 parent 1e751ba commit 7ec7a22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/5.0/docs/user-guide/devbox/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ upstream connect error or disconnect/reset before headers. retried and the lates

First of all, you should understand that your current environment is a development environment. The URL you are connecting to is a test URL, which is only used in the development environment. This URL corresponds to the port of the development environment. In other words, you must run the development environment, such as `npm run dev` to run your program first, before you can see the content through the URL, otherwise this error will be reported.

## 5. Click the link Cursor and enter the cursor interface, and an error message "Failed to fetch" is reported.
Another possible situation is that you just need to wait for a while, maybe the network is slow.

## 5. Click the link Cursor and enter the cursor interface, and an error message "Failed to fetch" is reported

Try to open Cursor's extension market. If the extension market cannot be loaded normally and the error `Error while fetching extensions.Failed to fetch` is reported, it is a network problem that cannot load Cursor's plug-in market. Please refer to the manual installation tutorial above to manually install the Devbox plug-in or try to change your network environment.

## 6. The local localhost can open the project but the public network address cannot be opened.
## 6. The local localhost can open the project but the public network address cannot be opened

The exposed address in the code must be changed from `localhost` to `0.0.0.0` due to network reasons.
6 changes: 4 additions & 2 deletions docs/5.0/i18n/zh-Hans/user-guide/devbox/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ upstream connect error or disconnect/reset before headers. retried and the lates

首先明白一下你此时的环境是开发环境,你现在连接的网址是测试网址,只用于开发环境,这个网址对应的是开发环境的端口。也就是说你必须运行开发环境,例如 `npm run dev` 让你的程序先运行起来,才能通过网址看到内容,否则就会报这个错误。

## 5、点击链接 Cursor,进入 cursor 界面报错 “Failed to fetch”。
另一种可能的情况是等待一段时间就可以了,可能网络比较卡顿。

## 5、点击链接 Cursor,进入 cursor 界面报错 “Failed to fetch”

尝试打开 Cursor 的扩展市场,如果扩展市场无法正常加载,报错 `Error while fetching extensions.Failed to fetch`,则是网络问题无法加载 Cursor 的插件市场。请参考上面的手动安装教程手动安装 Devbox 插件或者尝试更换您的网络环境。

## 6、本地 localhost 能打开项目但是公网地址打不开
## 6、本地 localhost 能打开项目但是公网地址打不开

代码里暴露地址由于网络原因必须从 `localhost` 改为 `0.0.0.0`

0 comments on commit 7ec7a22

Please sign in to comment.