Error: RPC failed; curl 55 The requested URL returned error: 401 when pushing to GIT from R Studio
Asked Answered
O

3

11

I can't push from R Studio and I keep getting the error:

error: RPC failed; curl 55 The requested URL returned error: 401

fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

Everything up-to-date

Ola answered 3/3, 2019 at 10:35 Comment(1)
It is possible that you have pushed a large file (>100MB). You need to unstage current changes, add that file to .gitignore and push again. To unstage, use git reset HEAD~1 --soft.Rejoin
O
12

I have dig in to the commits and found out that I had mistakenly committed a very large file which failed the push.

I have used git log origin..HEAD in my Ubuntu 18.04 AWS EC2 console to see that there are old commits there that haven't been pushed.

I have git reset HEAD~1 --soft to reset these two commits and corrected the files I want to commit and push in my R-Studio Server.

That's all the story, hope it will help others that have similar issues.

Ola answered 3/3, 2019 at 12:59 Comment(1)
i get this error: fatal: ambiguous argument 'origin..HEAD': unknown revision or path not in the working tree.Unconformity
A
7

I had the same issue. And increasing the size of the http.postbuffer with this command fixed my issue:

git config --global http.postbuffer 2097152000 

https://community.atlassian.com/t5/Bitbucket-questions/BitBucket-Disconnects-During-Long-Upload-Downloads/qaq-p/1170485

Asarum answered 10/12, 2020 at 17:36 Comment(0)
R
4

This happened to me a couple times when pushing my code to github, just because my internet connection was too slow. I did have a medium-sized file (a couple MBs) which slowed things down, but it was simply resolved by trying again later when my connection improved.

Rabinowitz answered 3/2, 2021 at 19:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.