Skip to content

Commit

Permalink
api: add curl internal error check to log_diagnose
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Aug 15, 2024
1 parent 957bb03 commit f35c48f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api
Original file line number Diff line number Diff line change
Expand Up @@ -2575,6 +2575,12 @@ If this keeps happening, see: https://stackoverflow.com/questions/66366582")
error_caption+=("Download failed. Check your internet connection and firewall, then try again.")
error_type="internet"
fi

if grep -q "curl: (.*) HTTP/2 stream .* was not closed cleanly: INTERNAL_ERROR (err .*)"
error_caption+=("Download failed due to an internal curl error. This could be an internet issue or hardware problem.
If you are overclocking, try reverting to stock clocks. Additionally, check your internet connection and firewall, then try again.")
error_type="internet"
fi

if grep -qF "errorCode=24 Authorization failed." <<<"$errors" ;then
error_caption+=("Download failed with the \"Authorization failed\" error. This sometimes happens during a download on bad Wi-Fi, but if this problem persists, please reach out to the Pi-Apps developers.")
Expand Down

0 comments on commit f35c48f

Please sign in to comment.