I'm trying to upgrade my Flutter SDK to version 3.27.3, but I keep encountering this error when running flutter upgrade:
ProcessException: Process exited abnormally with exit code 128: error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly: CANCEL (err 8) error: 5026 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output Command: git fetch --tags
I've tried upgrading to other versions as well, but the issue persists. Here’s what I have already attempted:
- Running git gc --prune=now and git fsck
- Manually clearing the Flutter cache (flutter cache clean)
- Checking my internet connection (it's stable)
- Running flutter upgrade --force
- Trying git fetch --unshallow inside the Flutter directory
However, none of these solutions have worked so far.
Has anyone else faced this issue? How can I resolve this error and successfully upgrade Flutter?