Bench switch-to-branch v3.x.x frappe erpnext --upgrade erorr

nonierp@doko:~/dokos-bench$ bench switch-to-branch v3.x.x frappe erpnext --upgrade
INFO: Fetching upstream unshallow for frappe
$ git remote set-branches upstream ‘*’
$ git fetch --all --unshallow --quiet
/‘error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
error: 19455 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: Could not fetch upstream
Traceback (most recent call last):
File “/home/nonierp/.local/bin/bench”, line 8, in
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/”, line 127, in cli
File “/usr/lib/python3/dist-packages/click/”, line 1128, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/”, line 1053, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/”, line 754, in invoke
return __callback(*args, **kwargs)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/commands/”, line 93, in switch_to_branch
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/”, line 107, in switch_to_branch
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/”, line 68, in switch_branch
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/”, line 158, in exec_cmd
raise CommandFailedError
nonierp@doko:~/dokos-bench$ /’

how to fix it

bench update --reset fix it