codeium.vim icon indicating copy to clipboard operation
codeium.vim copied to clipboard

Got an error after paste :Codeium Auth

Open GozaRaid opened this issue 11 months ago • 2 comments

I got this error after pasting the token

E474: Unidentified byte: Invoke-WebRequest : A parameter cannot be found that matches parameter name 'sSL'.^@At line:1 char:6^@+ curl -sSL https://api.codeium.com/register_user/ --header "Content-Ty ...^@+ ~~~~^@ + CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException^@ + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand^@ ^@
E474: Failed to parse Invoke-WebRequest : A parameter cannot be found that matches parameter name 'sSL'.^@At line:1 char:6^@+ curl -sSL https://api.codeium.com/register_user/ --header "Content-Ty ...^@+ ~~~~^@ + CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException^@ + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand^@ ^@

GozaRaid avatar Feb 05 '25 17:02 GozaRaid

I also have this error, I suspect it's because I have nvim explicitly set to run in powershell instead of command line

WireWhiz avatar Apr 13 '25 09:04 WireWhiz

Looks to me like the issue is caused because PowerShell hijacks the curl command name https://superuser.com/a/994132 . Seems that you might update powershell to get rid of the alias, or run it first in another terminal that's not using powershell.

mhitza avatar Apr 21 '25 19:04 mhitza