Corsinvest / cv4pve-pepper

Launching SPICE remote-viewer for Proxmox VE VDI client
https://www.corsinvest.it/cv4pve
GNU General Public License v3.0
96 stars 15 forks source link

host does not support IPv6 addr. #34

Open limitcool opened 1 week ago

limitcool commented 1 week ago

ERROR: One or more errors occurred.

franklupo commented 1 week ago

Hi, Can you explain better?

best regards

limitcool commented 1 week ago
cv4pve-pepper --host [*]:8006 --viewer pve.vv --api-token *

I used ipv6 addr as the parameter for the host, and the above error was returned.

ERROR: One or more errors occurred.
franklupo commented 1 week ago
cv4pve-pepper --host [*]:8006 --viewer pve.vv --api-token *

I used ipv6 addr as the parameter for the host, and the above error was returned.

ERROR: One or more errors occurred.

you can run with --debug and attach the logo. Be careful that it also contains the passwords in clear.

limitcool commented 1 week ago
ERROR: One or more errors occurred. (No such host is known.)
ERROR: No such host is known.
================ EXCEPTION ================
System.AggregateException
One or more errors occurred. (No such host is known.)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.TryHostAndPort(String hostsAndPorts, Int32 defaultPort, Boolean checkPort, Int32 timeout, String& host, Int32& port)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.GetClientFromHA(String hostsAndPortHA, Int32 timeout)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.GetClientAndTryLoginAsync(String hostsAndPortHA, String username, String password, String apiToken, Boolean validateCertificate, ILoggerFactory loggerFactory, Int32 timeout)
   at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLoginAsync(Command command, ILoggerFactory loggerFactory)
   at Program.<>c__DisplayClass0_0.<<<Main>$>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()
fail: Program[0]
      One or more errors occurred. (No such host is known.)
      System.AggregateException: One or more errors occurred. (No such host is known.)
       ---> System.Net.Sockets.SocketException (11001): No such host is known.
         at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
         at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
         at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
      --- End of stack trace from previous location ---
         at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
         --- End of inner exception stack trace ---
         at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
         at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
         at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
         at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.TryHostAndPort(String hostsAndPorts, Int32 defaultPort, Boolean checkPort, Int32 timeout, String& host, Int32& port)
         at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.GetClientFromHA(String hostsAndPortHA, Int32 timeout)
         at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.GetClientAndTryLoginAsync(String hostsAndPortHA, String username, String password, String apiToken, Boolean validateCertificate, ILoggerFactory loggerFactory, Int32 timeout)
         at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLoginAsync(Command command, ILoggerFactory loggerFactory)
         at Program.<>c__DisplayClass0_0.<<<Main>$>b__0>d.MoveNext()
      --- End of stack trace from previous location ---
         at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
         at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
      --- End of stack trace from previous location ---
         at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
      --- End of stack trace from previous location ---
         at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
      --- End of stack trace