You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I sent a POST /api/v2/rules and incorrectly formatted my request, so the name key was not included in the JSON body (instead, it was sent as an HTTP header). This resulted in an HTTP 500:
Aug 12, 2021 7:28:28 PM io.cryostat.core.log.Logger error
SEVERE: Exception thrown
io.cryostat.net.web.http.api.v2.ApiException: Internal Server Error
Caused by: java.lang.NullPointerException
at io.cryostat.rules.Rule$Builder.from(Rule.java:234)
at io.cryostat.util.RuleDeserializer.deserialize(RuleDeserializer.java:58)
at io.cryostat.util.RuleDeserializer.deserialize(RuleDeserializer.java:51)
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
at com.google.gson.Gson.fromJson(Gson.java:932)
at com.google.gson.Gson.fromJson(Gson.java:897)
at com.google.gson.Gson.fromJson(Gson.java:846)
at com.google.gson.Gson.fromJson(Gson.java:817)
at io.cryostat.net.web.http.api.v2.RulesPostHandler.handle(RulesPostHandler.java:144)
at io.cryostat.net.web.http.api.v2.AbstractV2RequestHandler.handle(AbstractV2RequestHandler.java:114)
at io.cryostat.net.web.http.api.v2.AbstractV2RequestHandler.handle(AbstractV2RequestHandler.java:68)
at io.vertx.ext.web.impl.BlockingHandlerDecorator.lambda$handle$0(BlockingHandlerDecorator.java:48)
at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:313)
at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:76)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)
Aug 12, 2021 7:28:28 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:60442): POST /api/v2/rules 500 4ms
This should have instead been a 400.
The text was updated successfully, but these errors were encountered:
I sent a
POST /api/v2/rules
and incorrectly formatted my request, so thename
key was not included in the JSON body (instead, it was sent as an HTTP header). This resulted in an HTTP 500:This should have instead been a
400
.The text was updated successfully, but these errors were encountered: