I am trying to push the modification on Github but it is showing me this error:
nvocation failed Unexpected end of file from server
java.lang.RuntimeException: Invocation failed Unexpected end of file
from server at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
at git4idea.http.GitAskPassApp.main(GitAskPassApp.java:58) Caused by:
java.net.SocketException: Unexpected end of file from server at
java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:866)
at
java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
at
java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:863)
at
java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
at
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
at
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at
org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)
at
org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194) at
org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185) at
org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178) at
git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:27) … 1 more
unable to read askpass response from
‘/home/al3x4ndru1/.cache/Google/AndroidStudio2021.2/tmp/intellij-git-askpass-local.sh’
could not read Username for ‘https://github.com’: No such device or
address
2
Answers
This solution worked for me when I had the same error
In studio terminal
type git push -f
error was : remote: Invalid username or password.
An authentication link will appear with that error.
Please click and complete authentication in your browser.
Then you should be able to push the code.
Download new vertion of git. I was also facing similar problem tried many solutions but none worked. Just update your git to the latest version.