Не работает vkchat

HappyIceGriefYT

Premium
Сборщик
Дизайнер
Hosting
Сообщения
294
Решения
4
Плагин
VkChat
Ядро сервера
  1. Spigot
Версия сервера
  1. 1.12.2
Память сервера ОЗУ
2Gb
При вводе команды /vk link выводит ошибку
Код:
[15:40:50] [Server thread/WARN]: Unexpected exception while parsing console command "vk"
org.bukkit.command.CommandException: Cannot execute command 'vk' in plugin VkChat v3.0.6 - plugin is disabled.
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:36) ~[patched_1.12.2.jar:git-Paper-1620]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[patched_1.12.2.jar:git-Paper-1620]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) ~[patched_1.12.2.jar:git-Paper-1620]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:648) ~[patched_1.12.2.jar:git-Paper-1620]
    at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:463) ~[patched_1.12.2.jar:git-Paper-1620]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:424) ~[patched_1.12.2.jar:git-Paper-1620]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1620]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1620]
    at java.lang.Thread.run(Thread.java:829) [?:?]
 
При вводе команды /vk link выводит ошибку
Код:
[15:40:50] [Server thread/WARN]: Unexpected exception while parsing console command "vk"
org.bukkit.command.CommandException: Cannot execute command 'vk' in plugin VkChat v3.0.6 - plugin is disabled.
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:36) ~[patched_1.12.2.jar:git-Paper-1620]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[patched_1.12.2.jar:git-Paper-1620]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) ~[patched_1.12.2.jar:git-Paper-1620]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:648) ~[patched_1.12.2.jar:git-Paper-1620]
    at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:463) ~[patched_1.12.2.jar:git-Paper-1620]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:424) ~[patched_1.12.2.jar:git-Paper-1620]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1620]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1620]
    at java.lang.Thread.run(Thread.java:829) [?:?]
Плагин отключен. Надо ошибку при его запуске
 
Плагин отключен. Надо ошибку при его запуске
Я попробовал на BungeeCord поставить, он работает но не работает. Он папку сгенерировал, но не работает, команд нет
 
Последнее редактирование модератором:
QUOTE="Overtime, post: 38100, member: 9008"]
Плагин отключен. Надо ошибку при его запуске
Я попробовал на BungeeCord поставить, он работает но не работает. Он папку сгенерировал, но не работает, команд нет
[/QUOTE]
Ошибку при запуске надо. написано в ошибке - плагин отключен, а значит при запуске ошибка возникла
 
Код:
17:01:21 [SEVERE] API error
com.vk.api.sdk.exceptions.ApiAuthException: User authorization failed (5): User authorization failed: invalid access_token (4).
    at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:17)
    at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
    at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
    at com.ubivashka.vk.bungee.providers.BungeeVkApiProvider.<init>(BungeeVkApiProvider.java:32)
    at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:34)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [INFO] §cКод ошибки: 5
17:01:21 [INFO] §cВ сайте https://vk.com/dev/errors описаны все ошибки связанные с ВК
17:01:21 [SEVERE] com.vk.api.sdk.exceptions.ApiAuthException: User authorization failed (5): User authorization failed: invalid access_token (4).
17:01:21 [SEVERE]     at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:17)
17:01:21 [SEVERE]     at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
17:01:21 [SEVERE]     at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
17:01:21 [SEVERE]     at com.ubivashka.vk.bungee.providers.BungeeVkApiProvider.<init>(BungeeVkApiProvider.java:32)
17:01:21 [SEVERE]     at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:34)
17:01:21 [SEVERE]     at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
17:01:21 [SEVERE]     at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
17:01:21 [SEVERE]     at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
17:01:21 [SEVERE]     at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [SEVERE] API error
com.vk.api.sdk.exceptions.ApiAuthException: User authorization failed (5): User authorization failed: invalid access_token (4).
    at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:17)
    at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
    at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
    at com.ubivashka.vk.api.listeners.LongpoolAPIListener.updateLongpoolServer(LongpoolAPIListener.java:83)
    at com.ubivashka.vk.api.listeners.LongpoolAPIListener.<init>(LongpoolAPIListener.java:30)
    at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:36)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [SEVERE] com.vk.api.sdk.exceptions.ApiAuthException: User authorization failed (5): User authorization failed: invalid access_token (4).
17:01:21 [SEVERE]     at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:17)
17:01:21 [SEVERE]     at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
17:01:21 [SEVERE]     at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
17:01:21 [SEVERE]     at com.ubivashka.vk.api.listeners.LongpoolAPIListener.updateLongpoolServer(LongpoolAPIListener.java:83)
17:01:21 [SEVERE]     at com.ubivashka.vk.api.listeners.LongpoolAPIListener.<init>(LongpoolAPIListener.java:30)
17:01:21 [SEVERE]     at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:36)
17:01:21 [SEVERE]     at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
17:01:21 [SEVERE]     at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
17:01:21 [SEVERE]     at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
17:01:21 [SEVERE]     at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [WARNING] Exception encountered when loading plugin: VK-API
java.lang.NullPointerException
    at com.ubivashka.vk.api.listeners.LongpoolAPIListener.<init>(LongpoolAPIListener.java:31)
    at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:36)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [INFO] Enabled plugin VkChat version 3.0.6 by Spliterash
17:01:21 [INFO]
§7-----------------------------------------------------------------
  ____                              __  __  ____ _______ _____ 
 |  _ \                            |  \/  |/ __ \__   __|  __ \
 | |_) |_   _ _ __   __ _  ___  ___| \  / | |  | | | |  | |  | |
 |  _ <| | | | '_ \ / _` |/ _ \/ _ \ |\/| | |  | | | |  | |  | |
 | |_) | |_| | | | | (_| |  __/  __/ |  | | |__| | | |  | |__| |
 |____/ \__,_|_| |_|\__, |\___|\___|_|  |_|\____/  |_|  |_____/
                     __/ |                                     
                    |___/
[17:01:21] §7Plugin Code by §eLosGecodet §8- §6Version §e1.0§7
[17:01:21] §aData is loading...§7
[17:01:21] §aData loaded successfully
§7-----------------------------------------------------------------
17:01:21 [INFO] Enabled plugin BungeeMOTD version 1.0 by losgecodet
17:01:21 [INFO] Enabled plugin CountryOnJoin version 1.1.0 by Sososlik (sososlik@outlook.com)
17:01:21 [INFO] Listening on /194.169.160.34:25565
17:01:21 [SEVERE] Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@3e83c18, id=4, owner=ru.spliterash.vkchat.launchers.bungee.BungeePlugin@f438904, task=ru.spliterash.vkchat.VkChat$$Lambda$400/0x00000008404ecc40@3453acd2, delay=0, period=0, running=true) encountered an exception
java.lang.RuntimeException: com.vk.api.sdk.exceptions.ClientException: Internal API server error. Wrong status code: 400. Content: {"error":{"error_code":3,"error_msg":"Bad request"}}

    at ru.spliterash.vkchat.VkChat.start(VkChat.java:201)
    at ru.spliterash.vkchat.VkChat.lambda$onEnable$0(VkChat.java:108)
    at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.vk.api.sdk.exceptions.ClientException: Internal API server error. Wrong status code: 400. Content: {"error":{"error_code":3,"error_msg":"Bad request"}}

    at com.vk.api.sdk.client.ApiRequest.executeAsString(ApiRequest.java:116)
    at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:73)
    at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:63)
    at ru.spliterash.vkchat.utils.VkUtils.getMyId(VkUtils.java:53)
    at ru.spliterash.vkchat.VkChat.start(VkChat.java:198)
    ... 5 more
 
Код:
17:01:21 [SEVERE] API error
com.vk.api.sdk.exceptions.ApiAuthException: User authorization failed (5): User authorization failed: invalid access_token (4).
    at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:17)
    at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
    at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
    at com.ubivashka.vk.bungee.providers.BungeeVkApiProvider.<init>(BungeeVkApiProvider.java:32)
    at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:34)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [INFO] §cКод ошибки: 5
17:01:21 [INFO] §cВ сайте https://vk.com/dev/errors описаны все ошибки связанные с ВК
17:01:21 [SEVERE] com.vk.api.sdk.exceptions.ApiAuthException: User authorization failed (5): User authorization failed: invalid access_token (4).
17:01:21 [SEVERE]     at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:17)
17:01:21 [SEVERE]     at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
17:01:21 [SEVERE]     at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
17:01:21 [SEVERE]     at com.ubivashka.vk.bungee.providers.BungeeVkApiProvider.<init>(BungeeVkApiProvider.java:32)
17:01:21 [SEVERE]     at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:34)
17:01:21 [SEVERE]     at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
17:01:21 [SEVERE]     at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
17:01:21 [SEVERE]     at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
17:01:21 [SEVERE]     at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [SEVERE] API error
com.vk.api.sdk.exceptions.ApiAuthException: User authorization failed (5): User authorization failed: invalid access_token (4).
    at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:17)
    at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
    at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
    at com.ubivashka.vk.api.listeners.LongpoolAPIListener.updateLongpoolServer(LongpoolAPIListener.java:83)
    at com.ubivashka.vk.api.listeners.LongpoolAPIListener.<init>(LongpoolAPIListener.java:30)
    at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:36)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [SEVERE] com.vk.api.sdk.exceptions.ApiAuthException: User authorization failed (5): User authorization failed: invalid access_token (4).
17:01:21 [SEVERE]     at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:17)
17:01:21 [SEVERE]     at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
17:01:21 [SEVERE]     at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
17:01:21 [SEVERE]     at com.ubivashka.vk.api.listeners.LongpoolAPIListener.updateLongpoolServer(LongpoolAPIListener.java:83)
17:01:21 [SEVERE]     at com.ubivashka.vk.api.listeners.LongpoolAPIListener.<init>(LongpoolAPIListener.java:30)
17:01:21 [SEVERE]     at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:36)
17:01:21 [SEVERE]     at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
17:01:21 [SEVERE]     at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
17:01:21 [SEVERE]     at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
17:01:21 [SEVERE]     at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [WARNING] Exception encountered when loading plugin: VK-API
java.lang.NullPointerException
    at com.ubivashka.vk.api.listeners.LongpoolAPIListener.<init>(LongpoolAPIListener.java:31)
    at com.ubivashka.vk.bungee.BungeeVkApiPlugin.onEnable(BungeeVkApiPlugin.java:36)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:309)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:49)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
17:01:21 [INFO] Enabled plugin VkChat version 3.0.6 by Spliterash
17:01:21 [INFO]
§7-----------------------------------------------------------------
  ____                              __  __  ____ _______ _____
|  _ \                            |  \/  |/ __ \__   __|  __ \
| |_) |_   _ _ __   __ _  ___  ___| \  / | |  | | | |  | |  | |
|  _ <| | | | '_ \ / _` |/ _ \/ _ \ |\/| | |  | | | |  | |  | |
| |_) | |_| | | | | (_| |  __/  __/ |  | | |__| | | |  | |__| |
|____/ \__,_|_| |_|\__, |\___|\___|_|  |_|\____/  |_|  |_____/
                     __/ |                                    
                    |___/
[17:01:21] §7Plugin Code by §eLosGecodet §8- §6Version §e1.0§7
[17:01:21] §aData is loading...§7
[17:01:21] §aData loaded successfully
§7-----------------------------------------------------------------
17:01:21 [INFO] Enabled plugin BungeeMOTD version 1.0 by losgecodet
17:01:21 [INFO] Enabled plugin CountryOnJoin version 1.1.0 by Sososlik (sososlik@outlook.com)
17:01:21 [INFO] Listening on /194.169.160.34:25565
17:01:21 [SEVERE] Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@3e83c18, id=4, owner=ru.spliterash.vkchat.launchers.bungee.BungeePlugin@f438904, task=ru.spliterash.vkchat.VkChat$$Lambda$400/0x00000008404ecc40@3453acd2, delay=0, period=0, running=true) encountered an exception
java.lang.RuntimeException: com.vk.api.sdk.exceptions.ClientException: Internal API server error. Wrong status code: 400. Content: {"error":{"error_code":3,"error_msg":"Bad request"}}

    at ru.spliterash.vkchat.VkChat.start(VkChat.java:201)
    at ru.spliterash.vkchat.VkChat.lambda$onEnable$0(VkChat.java:108)
    at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.vk.api.sdk.exceptions.ClientException: Internal API server error. Wrong status code: 400. Content: {"error":{"error_code":3,"error_msg":"Bad request"}}

    at com.vk.api.sdk.client.ApiRequest.executeAsString(ApiRequest.java:116)
    at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:73)
    at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:63)
    at ru.spliterash.vkchat.utils.VkUtils.getMyId(VkUtils.java:53)
    at ru.spliterash.vkchat.VkChat.start(VkChat.java:198)
    ... 5 more
Не может подрубиться к вк может?
 
Вот если бы автор указал, что такое код ошибки - 5, тогда было бы яснее
Авторизация пользователя не удалась.
Убедитесь, что Вы используете
Объединено

Верную схему авторизации
 
Назад
Сверху Снизу