GitLab 통합 오류. LibGit2SharpException: 문자열을 와이드 형식으로 변환하지 못했습니다

안녕하세요, 여러분.

GitLab 통합 기능을 사용하는 데 어려움을 겪고 있는데, 왜 오류가 발생하는지 모르겠습니다. 혹시 지금 제가 겪는 문제를 경험해 보신 분이 있을까요?

음… 프로젝트를 GitLab에 푸시하려고 했지만 할 수가 없습니다.

보호된 브랜치(master)에 푸시하려고 했다는 걸 알게 됐습니다. 그래서 다른 브랜치로 시도해 봤더니 제대로 작동했고, Git Bash를 통해 푸시할 수 있었습니다(브랜치를 만들고 커밋한 뒤 성공적으로 푸시했습니다). 문제는 다른 브랜치가 아니라 master 브랜치(보호됨)로 시도했다는 점이라고 생각했습니다. 하지만 Git Bash에서 했던 것과 똑같은 작업을 UiPath에서 해 보니, 처음 master에 푸시하려고 했을 때와 같은 오류가 발생합니다(오류 스크린샷과 설명은 아래에 첨부했습니다).

이 오류의 해결 방법을 찾을 수가 없습니다. VM 두 대에서 시도해 봤고, Git Bash와 UiPath에서도 시도해 봤습니다. Git Bash에서는 작동했지만 UiPath에서는 아무것도 되지 않았습니다. 로컬 프로젝트에서 새 브랜치를 만들고 Git에 푸시하는 것도 시도했지만, 모두 실패했습니다.

그 밖에 시도해 볼 만한 방법이 있을까요? 뭐든지요.

미리 감사드립니다. UiPath에서 발생하는 오류의 설명은 아래와 같습니다.

23.10.7+Branch.support-v23.10.Sha.02c40641e96e0fb2b02b5704bda2b5572df87464

구성된 원격 저장소로 푸시할 수 없습니다.

오류: LibGit2Sharp.LibGit2SharpException: 문자열을 와이드 형식으로 변환하지 못했습니다: 매개 변수가 올바르지 않습니다.

at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 156
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2238 at LibGit2Sharp.Network.Push(Remote remote, IEnumerable1 pushRefSpecs, PushOptions pushOptions) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 372
at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 331
at UiPath.Studio.Plugin.Git.Services.PushService.<>c__DisplayClass2_0.b__0()
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 156
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2238 at LibGit2Sharp.Network.Push(Remote remote, IEnumerable1 pushRefSpecs, PushOptions pushOptions) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 372
at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 331
at UiPath.Studio.Plugin.Git.Services.PushService.<>c__DisplayClass2_0.b__0()
at UiPath.Studio.Plugin.Git.Desktop.Services.UiAuthenticationSession.Execute[T](ExecuteArgs1 args) at UiPath.Studio.Plugin.Git.Services.PushService.Push(IRepository repository, RemoteModel remote, Boolean forcePush) at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.PushInternal(IRepository repository, RemoteModel remote, Boolean forcePush) at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.<>c__DisplayClass17_0.<PushAsync>b__3(IRepository r) at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteInternal[TResult](Func2 action, Func1 repoFactory) at UiPath.Studio.Plugin.Git.Services.GitSession.<>c__DisplayClass18_01.b__1()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UiPath.Studio.Plugin.Git.Services.GitSession.SafeExecuteAsync[TResult](Func1 action)
at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteAsync[TResult](Func`2 action)
at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.PushAsync(IGitSession session), HResult -2146233088

@angelmonrealr

비밀번호 문제인 것 같아요.. 비밀번호에 특수 문자가 있나요?

있다면 비밀번호를 변경해 보고 확인해 주실 수 있나요?

고마워요

안녕하세요 Anil님,

UiPath에서 평소 자격 증명을 묻는 시점 직전에 오류가 발생했습니다. 비밀번호는 한 달도 안 돼 변경했고, 같은 비밀번호가 Git Bash에서는 작동했습니다. 비밀번호 문제는 아닌 것 같은데요…

사실 방금 혹시 그게 문제일까 싶어 „자격 증명 변경“을 클릭해 봤습니다:

자격 증명을 묻는 창조차 뜨지 않았습니다. 클릭하자마자 이전과 똑같은 오류가 발생해서 사용자 이름과 비밀번호를 입력할 수도 없었습니다.

안녕하세요, 여러분,

아직 문제가 어디에 있는지 찾지 못했습니다. Git Bash에서는 모든 것이 정상인데 UiPath를 GIT에 연결할 수가 없네요. 이상하네요. UiPath 쪽에 문제가 있는 게 분명합니다.

이 문제를 겪어 보신 분 있나요? 미리 감사드립니다 :slight_smile:

안녕하세요,

먼저 말씀드리자면, 해결 방법은 없습니다.
하지만 저도 같은 문제를 겪고 있습니다. 로컬 Git 서버에서 GitHub로 옮긴 뒤로 저장소를 푸시할 수 없게 됐습니다.
같은 오류가 발생합니다:
LibGit2Sharp.LibGit2SharpException: failed to convert string to wide form: Falscher Parameter.

CLI로 푸시하면 전혀 문제가 없습니다.

오류 메시지의 마지막 부분이 영어가 아니라 현지 언어로 표시된다는 점이 흥미롭습니다. 이것이 단서일 수도 있을까요?
안타깝게도 해결 방법을 찾지 못했습니다.

추신: 비밀번호를 확인해 봤습니다. 문자와 숫자만 들어 있습니다.

감사합니다