Skip to content

Commit 7b6c6a8

Browse files
roomote[bot]roomote-agentdaniel-lxs
authored
fix: improve handling of net::ERR_ABORTED errors in URL fetching (#6635)
Co-authored-by: Roo Code <[email protected]> Co-authored-by: Daniel Riccio <[email protected]>
1 parent 4f4328d commit 7b6c6a8

File tree

20 files changed

+51
-0
lines changed

20 files changed

+51
-0
lines changed

src/core/mentions/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ function getUrlErrorMessage(error: unknown): string {
3535
if (errorMessage.includes("net::ERR_INTERNET_DISCONNECTED")) {
3636
return t("common:errors.no_internet")
3737
}
38+
if (errorMessage.includes("net::ERR_ABORTED")) {
39+
return t("common:errors.url_request_aborted")
40+
}
3841
if (errorMessage.includes("403") || errorMessage.includes("Forbidden")) {
3942
return t("common:errors.url_forbidden")
4043
}

src/i18n/locales/ca/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/de/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"no_internet": "No internet connection. Please check your network connection and try again.",
6262
"url_forbidden": "Access to this website is forbidden. The site may block automated access or require authentication.",
6363
"url_page_not_found": "The page was not found. Please check if the URL is correct.",
64+
"url_request_aborted": "The request to fetch the URL was aborted. This may happen if the site blocks automated access, requires authentication, or if there's a network issue. Please try again or check if the URL is accessible in a regular browser.",
6465
"url_fetch_failed": "Failed to fetch URL content: {{error}}",
6566
"url_fetch_error_with_url": "Error fetching content for {{url}}: {{error}}",
6667
"command_timeout": "Command execution timed out after {{seconds}} seconds",

src/i18n/locales/es/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/fr/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/hi/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/id/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/it/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/ja/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)