라떼는말이야

[Android Studio] Invocation failed Unexpected end of file from server 오류 (GitHub Push 오류) 본문

오류메시지

[Android Studio] Invocation failed Unexpected end of file from server 오류 (GitHub Push 오류)

MangBaam 2022. 6. 13. 22:41
반응형

문제 상황

GitHub에 Push를 시도하던 중 다음과 같은 오류 발생.

토큰을 재발급 받아 갱신시켜 봤지만 해결 안 됨

Invocation 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
error: unable to read askpass response from 'C:\...\...\AppData\Local\Google\AndroidStudio2021.2\tmp\intellij-git-askpass-local.sh'
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': No such file or directory

 

해결 방법

[File] -> [Settings] -> [Version Control] -> [Git] -> 하단에 Use credential helper 체크박스 체크

[Apply] 이후 다시 Push 하니 성공적으로 푸시 됨

 


참고: https://velog.io/@ksh564/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C%EC%97%90%EC%84%9C-unable-to-read-askpass-response-from

반응형
Comments