Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

TS3AB - problem z linkami


Szogi1910

Rekomendowane odpowiedzi

Opublikowano

Hej, mam malutki problem z botem po wgraniu etc czyli całej instalacji, gdy bot już się połączy z serwerem i wyślemy do niego link, który mamy odtworzyć wywala błąd

 

Cytat

<21:20:37> "Szogun": !play https://www.youtube.com/watch?v=L7kNBcJgFaU <21:20:38> "Poczekalnia": An unexpected error occurred: The type initializer for 'TS3AudioBot.Helper.WebWrapper' threw an exception. <21:20:53> "Szogun": !play http://s2.radioparty.pl:8005 <21:20:53> "Poczekalnia": Error: Could not load. (media: Unknown request error.)

 


20:06:46.620| INFO||Core.ConsoleInterruptHandler Got interrupt signal, trying to soft-exit.
20:06:46.626| INFO||Core.StopAsync TS3AudioBot shutting down.
20:06:46.631| INFO||Bot.Stop Bot (0) disconnecting.
20:06:46.689| INFO||WebServer.Dispose WebServer is closing
20:06:46.691| INFO||WebServer.OnShutdown WebServer has closed
20:06:46.694| INFO||Core.StopAsync Bye
20:06:53.815| INFO||Setup.LogHeader [============ TS3AudioBot started =============]
20:06:53.873| INFO||Setup.LogHeader [ Date: Tuesday, 08 September 2020 20:06:53
20:06:53.916| INFO||Setup.LogHeader [ Version: <?>/<?>/<?>
20:06:53.916| INFO||Setup.LogHeader [ Build: <?>
20:06:53.916| INFO||Setup.LogHeader [ Platform: Ubuntu 18.04.5 LTS (Bionic Beaver) (64bit)
20:06:53.918| INFO||Setup.LogHeader [ Runtime: .NET Core (3.1.7) ServerGC:False GC:SustainedLowLatency
20:06:53.918| INFO||Setup.LogHeader [ Opus: libopus 1.1.2 (x64)
20:06:53.918| INFO||Setup.LogHeader [==============================================]
20:06:54.594| INFO||WebServer.StartWebServerInternal Starting Webserver on port 58913
20:06:54.893| INFO||Bot.Run Bot "default" connecting to "localhost"
20:06:56.039| INFO||Ts3Client.ConnectClient Client connected.
20:07:04.021| INFO||WebApi.ProcessApiV1Call ::ffff:127.0.0.1 Requested: /api/json/merge/(/settings/bot/get/default/connect.name)/(/settings/bot/get/0dNc2/connect.name)/(/settings/bot/get/c8c4y/connect.name)/(/settings/bot/get/QQQrv/connect.name)/(/bot/list)
20:07:04.158| WARN||ConfRoot.GetBotConfig Failed to load bot config "0dNc2"
System.IO.DirectoryNotFoundException: Could not find a part of the path '/xxx/xxxx/ts3ab/bots/0dNc2/bot.toml'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at Nett.Toml.ReadFile(String filePath, TomlSettings settings)
   at Nett.Toml.ReadFile(String filePath)
   at TS3AudioBot.Config.ConfigEnumerable.Load[T](String path) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/Config/ConfigEnumerable.cs:line 139
20:07:04.173| WARN||ConfRoot.GetBotConfig Failed to load bot config "c8c4y"
System.IO.DirectoryNotFoundException: Could not find a part of the path '/xxx/xxxx/ts3ab/bots/c8c4y/bot.toml'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at Nett.Toml.ReadFile(String filePath, TomlSettings settings)
   at Nett.Toml.ReadFile(String filePath)
   at TS3AudioBot.Config.ConfigEnumerable.Load[T](String path) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/Config/ConfigEnumerable.cs:line 139
20:07:04.175| WARN||ConfRoot.GetBotConfig Failed to load bot config "QQQrv"
System.IO.DirectoryNotFoundException: Could not find a part of the path '/xxx/xxxx/ts3ab/bots/QQQrv/bot.toml'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at Nett.Toml.ReadFile(String filePath, TomlSettings settings)
   at Nett.Toml.ReadFile(String filePath)
   at TS3AudioBot.Config.ConfigEnumerable.Load[T](String path) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/Config/ConfigEnumerable.cs:line 139
20:07:05.774| INFO||WebApi.ProcessApiV1Call ::ffff:127.0.0.1 Requested: /api/bot/list
20:07:05.774| INFO||WebApi.ProcessApiV1Call ::ffff:127.0.0.1 Requested: /api/bot/use/0/(/json/merge/(/song)/(/volume)/(/random)/(/repeat)
20:07:07.583| INFO||WebApi.ProcessApiV1Call ::ffff:127.0.0.1 Requested: /api/bot/list
20:07:07.603| INFO||WebApi.ProcessApiV1Call ::ffff:127.0.0.1 Requested: /api/bot/use/0/(/play/%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCPFDNRFH7AU%22
20:07:07.694|ERROR||WebApi.ReturnError Unknown command error
System.TypeInitializationException: The type initializer for 'TS3AudioBot.Helper.WebWrapper' threw an exception.
 ---> System.FormatException: The format of value '<?>' is invalid.
   at System.Net.Http.Headers.HeaderUtilities.CheckValidToken(String value, String parameterName)
   at System.Net.Http.Headers.ProductHeaderValue..ctor(String name, String version)
   at System.Net.Http.Headers.ProductInfoHeaderValue..ctor(String productName, String productVersion)
   at TS3AudioBot.Helper.WebWrapper..cctor() in /xxx/xxxx/TS3AudioBot/TS3AudioBot/Helper/WebWrapper.cs:line 36
   --- End of inner exception stack trace ---
   at TS3AudioBot.Helper.WebWrapper.Request(String link) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/Helper/WebWrapper.cs:line 41
   at TS3AudioBot.ResourceFactories.Youtube.YoutubeResolver.ResolveResourceInternal(AudioResource resource) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/ResourceFactories/Youtube/YoutubeResolver.cs:line 88
   at TS3AudioBot.ResourceFactories.Youtube.YoutubeResolver.GetResourceById(ResolveContext _, AudioResource resource) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/ResourceFactories/Youtube/YoutubeResolver.cs:line 75
   at TS3AudioBot.ResourceFactories.Youtube.YoutubeResolver.GetResource(ResolveContext _, String uri) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/ResourceFactories/Youtube/YoutubeResolver.cs:line 59
   at TS3AudioBot.ResourceFactories.ResourceResolver.Load(ResolveContext ctx, String message, String audioType) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/ResourceFactories/ResourceResolver.cs:line 141
   at TS3AudioBot.Audio.PlayManager.Play(InvokerData invoker, String link, String audioType, PlayInfo meta) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/Audio/PlayManager.cs:line 122
   at TS3AudioBot.MainCommands.CommandPlay(PlayManager playManager, InvokerData invoker, String url, String[] attributes) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/MainCommands.cs:line 1195
   at TS3AudioBot.CommandSystem.Commands.FunctionCommand.ExecuteFunction(Object[] parameters) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/FunctionCommand.cs:line 81
   at TS3AudioBot.CommandSystem.Commands.FunctionCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/FunctionCommand.cs:line 203
   at TS3AudioBot.CommandSystem.BotCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/BotCommand.cs:line 131
   at TS3AudioBot.CommandSystem.Commands.OverloadedFunctionCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/OverloadedFunctionCommand.cs:line 84
   at TS3AudioBot.CommandSystem.Commands.CommandGroup.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/CommandGroup.cs:line 63
   at TS3AudioBot.CommandSystem.Commands.RootCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/RootCommand.cs:line 41
   at TS3AudioBot.MainCommands.CommandBotUseInternal(ExecutionInformation info, Bot bot, ICommand cmd) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/MainCommands.cs:line 360
   at TS3AudioBot.MainCommands.CommandBotUse(ExecutionInformation info, BotManager bots, Int32 botId, ICommand cmd) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/MainCommands.cs:line 348
   at TS3AudioBot.CommandSystem.Commands.FunctionCommand.ExecuteFunction(Object[] parameters) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/FunctionCommand.cs:line 81
   at TS3AudioBot.CommandSystem.Commands.FunctionCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/FunctionCommand.cs:line 203
   at TS3AudioBot.CommandSystem.BotCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/BotCommand.cs:line 131
   at TS3AudioBot.CommandSystem.Commands.CommandGroup.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/CommandGroup.cs:line 63
   at TS3AudioBot.CommandSystem.Commands.CommandGroup.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/CommandGroup.cs:line 63
   at TS3AudioBot.CommandSystem.Commands.RootCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/CommandSystem/Commands/RootCommand.cs:line 41
   at TS3AudioBot.Web.Api.WebApi.ProcessApiV1Call(HttpContext context) in /xxx/xxxx/TS3AudioBot/TS3AudioBot/Web/Api/WebApi.cs:line 115

 

  • Aive zmienił(a) tytuł na TS3AB - problem z linkami

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...