skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search