NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Solved Bug Website returned invalid response with code 200.
Started by Daichi Kei

Daichi Kei

Daichi Kei

Member
Joined
09 Feb 2024
Last Seen
14 Feb 2024
Topics
1
Posts
1

help me

 

[19:55:14 WARN]: [NamelessMC] The website didn't return a valid json response. Run /nlpl last_error to retrieve the full stack trace.

nlpl last_error

[19:55:30 WARN]: [NamelessMC] com.namelessmc.plugin.lib.nameless-api.exception.NamelessException: Website returned invalid response with code 200.

Website response, after 250ms:

-----------------

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null in /www/wwwroot/my.keidev.my.id/core/classes/Database/DB.php on line 253

#0 /www/wwwroot/my.keidev.my.id/core/classes/Database/DB.php(253): PDOStatement->execute()

#1 /www/wwwroot/my.keidev.my.id/core/classes/Core/User.php(147): DB->query()

#2 /www/wwwroot/my.keidev.my.id/core/classes/Core/User.php(551): User->addGroup()

#3 /www/wwwroot/my.keidev.my.id/core/classes/Core/User.php(914): User->getGroups()

#4 /www/wwwroot/my.keidev.my.id/custom/templates/Cobalt/template.php(320): User->canViewStaffCP()

#5 /www/wwwroot/my.keidev.my.id/custom/templates/Cobalt/template.php(459): Cobalt_Template->__construct()

#6 /www/wwwroot/my.keidev.my.id/core/templates/frontend_init.php(60): require('/www/wwwroot/my...')

#7 /www/wwwroot/my.keidev.my.id/modules/Core/pages/api/v2/index.php(17): require_once('/www/wwwroot/my...')

#8 /www/wwwroot/my.keidev.my.id/index.php(133): require('/www/wwwroot/my...')

#9 {main}

        at Nameless-Plugin-Paper-3.4.0.jar//com.namelessmc.plugin.lib.nameless-api.RequestHandler.makeConnection(RequestHandler.java:219)

        at Nameless-Plugin-Paper-3.4.0.jar//com.namelessmc.plugin.lib.nameless-api.RequestHandler.get(RequestHandler.java:86)

        at Nameless-Plugin-Paper-3.4.0.jar//com.namelessmc.plugin.lib.nameless-api.NamelessAPI.website(NamelessAPI.java:120)

        at Nameless-Plugin-Paper-3.4.0.jar//com.namelessmc.plugin.common.ApiProvider.api(ApiProvider.java:118)

        at Nameless-Plugin-Paper-3.4.0.jar//com.namelessmc.plugin.common.command.UserInfoCommand.lambda$execute$1(UserInfoCommand.java:41)

        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)

        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)

        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)

        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

        at java.base/java.lang.Thread.run(Thread.java:840)

Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $

        at com.google.gson.JsonParser.parseReader(JsonParser.java:76)

        at com.google.gson.JsonParser.parseString(JsonParser.java:51)

        at Nameless-Plugin-Paper-3.4.0.jar//com.namelessmc.plugin.lib.nameless-api.RequestHandler.makeConnection(RequestHandler.java:187)

        ... 10 more

Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $

        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1657)

        at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1463)

        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:551)

        at com.google.gson.stream.JsonReader.peek(JsonReader.java:433)

        at com.google.gson.JsonParser.parseReader(JsonParser.java:71)

        ... 12 more

[19:55:47 WARN]: [NamelessMC] The website didn't return a valid json response. Run /nlpl last_error to retrieve the full stack trace.

[20:00:47 WARN]: [NamelessMC] The website didn't return a valid json response. Run /nlpl last_error to retrieve the full stack trace.

[20:05:47 WARN]: [NamelessMC] The website didn't return a valid json response. Run /nlpl last_error to retrieve the full stack trace.

[20:10:47 WARN]: [NamelessMC] The website didn't return a valid json response. Run /nlpl last_error to retrieve the full stack trace.

 

Daichi Kei · 10 months ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
03 Dec 2024
Topics
41
Posts
1076

Hi,

I see the Solved label has been applied - if anyone has this issue in the future, it means the Cobalt template is not up to date, so updating to the latest version of that template should solve the problem.

Samerton · 10 months ago