Git push중에 아래와 같은 에러가 발생했다.
직전에 에러가 있는 클래스가 있는 채로 commit push한 후에
해당 에러없애려고 리턴타입 맞춰서 User 생성후 return 한 상황
private User saveNewUser(OAuthAttributes attributes) {
OAuthAttributes user = attributes.builder()
.username(attributes.getEmail())
.email(attributes.getEmail())
.nickname(attributes.getNickname())
.role(attributes.getRole())
.build();
// return User인데 Object 타입 불일치
//
User a = new User(); // 임의로 에러 사라지게 하기 위해서 작성한 코드 <-이거 적음
return a;
Invocation failed Server returned invalid Response.
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
at org.jetbrains.git4idea.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:50)
at org.jetbrains.git4idea.http.GitAskPassApp.main(GitAskPassApp.java:64)
Caused by: java.io.IOException: Server returned invalid Response.
at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:242)
at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
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 org.jetbrains.git4idea.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:47)
... 1 more remote: No anonymous write access. Authentication failed for 'https://github.com/devjun63/familyevents.git/'
file - settings -> git -> Use credential helper 체크
안됌
아래와 같은 에러 출력
Logon failed, use ctrl+c to cancel basic credential prompt.
Invocation failed Server returned invalid Response.
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
at org.jetbrains.git4idea.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:50) at org.jetbrains.git4idea.http.GitAskPassApp.main(GitAskPassApp.java:64)
Caused by: java.io.IOException: Server returned invalid Response.
at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:242) at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
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 org.jetbrains.git4idea.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:47)
... 1 more remote: No anonymous write access.
Authentication failed for 'https://github.com/devjun63/familyevents.git/'
찾아보니 깃 버전 업그레이드로 해결 가능하다고 한다.
터미널 창에서 git update-git-for-windows 입력 엔터
y/n -> y
다 돼면 설치 창 나오는데 무지성 next
창이 나옴
git login in browser 또는 token으로 인증하라고 함
browser -> mobile auth 인증함
몇 가지 변경 항목 보고 인증하고 commit push 완료
'참고 사항 및 기타 > 나중에 볼 에러 해결 모음' 카테고리의 다른 글
Why can't I divide by dots in string.split in Java? (0) | 2021.04.22 |
---|---|
Swagger 적용 (0) | 2021.03.06 |
이클립스에서 CSS파일 로딩이 안될때 (0) | 2021.03.06 |
네이버 부스트 코스 Incorrect column count expect 1 actual 2; (0) | 2021.03.06 |