Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.KairosDbRequestException:: query.metric[0].tags[0].folder value must not be null or empty #343

Open
vjkoskela opened this issue Apr 1, 2020 · 0 comments

Comments

@vjkoskela
Copy link
Member

This may be a non-issue (e.g. simply user error) in which case the right thing happened:

"requestUri":"http://localhost:9415/api/v1/datapoints/query","httpStatus":400,"httpMessage":"Bad Request"

However, it seems like an condition to require folder on a tag, or at least the error message may be misleading or incorrect.

Probably deserves some investigation.

Full trace:

{"time":"2020-04-01T00:18:04.664Z","name":"log","level":"crit","data":{"message":"error processing request","request":{"_id":"6356e79a","_class":"play.mvc.Http$RequestImpl"},"method":"POST","path":"/api/v1/datapoints/query"},"exception":{"type":"java.util.concurrent.CompletionException","message":"com.arpnetworking.kairos.client.KairosDbRequestException: {\"errors\":[\"query.metric[0].tags[0].folder value must not be null or empty\"]}","backtrace":["at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)","at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)","at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)","at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)","at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)","at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)","at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:20)","at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:18)","at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:36)","at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:63)","at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:78)","at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:55)","at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:55)","at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)","at scala.concurrent.BatchingExecutor$Batch.run(BatchingExecutor.scala:54)","at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:601)","at scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:106)","at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:599)","at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:44)","at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:252)","at scala.concurrent.Promise$class.complete(Promise.scala:55)","at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:157)","at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)","at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)","at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:36)","at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)","at akka.dispatch.BatchingExecutor$Batch.run(BatchingExecutor.scala:73)","at akka.dispatch.ExecutionContexts$sameThreadExecutionContext$.unbatchedExecute(Future.scala:81)","at akka.dispatch.BatchingExecutor$class.execute(BatchingExecutor.scala:120)","at akka.dispatch.ExecutionContexts$sameThreadExecutionContext$.execute(Future.scala:80)","at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:44)","at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:252)","at scala.concurrent.Promise$class.trySuccess(Promise.scala:94)","at scala.concurrent.impl.Promise$DefaultPromise.trySuccess(Promise.scala:157)","at akka.stream.impl.HeadOptionStage$$anon$3.onPush(Sinks.scala:241)","at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:519)","at akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:508)","at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:378)","at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:588)","at akka.stream.impl.fusing.GraphInterpreterShell.init(ActorGraphInterpreter.scala:558)","at akka.stream.impl.fusing.ActorGraphInterpreter.tryInit(ActorGraphInterpreter.scala:679)","at akka.stream.impl.fusing.ActorGraphInterpreter.preStart(ActorGraphInterpreter.scala:727)","at akka.actor.Actor$class.aroundPreStart(Actor.scala:528)","at akka.stream.impl.fusing.ActorGraphInterpreter.aroundPreStart(ActorGraphInterpreter.scala:670)","at akka.actor.ActorCell.create(ActorCell.scala:656)","at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:527)","at akka.actor.ActorCell.systemInvoke(ActorCell.scala:549)","at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:283)","at akka.dispatch.Mailbox.run(Mailbox.scala:224)","at akka.dispatch.Mailbox.exec(Mailbox.scala:235)","at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)","at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)","at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)","at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)"],"data":{"_id":"232ef32e","_class":"java.util.concurrent.CompletionException","cause":{"type":"com.arpnetworking.kairos.client.KairosDbRequestException","message":"{\"errors\":[\"query.metric[0].tags[0].folder value must not be null or empty\"]}","backtrace":["at com.arpnetworking.kairos.client.KairosDbClientImpl.lambda$2(KairosDbClientImpl.java:138)","at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)","at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)","at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)","at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)","at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:20)","at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:18)","at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:36)","at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:63)","at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:78)","at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:55)","at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:55)","at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)","at scala.concurrent.BatchingExecutor$Batch.run(BatchingExecutor.scala:54)","at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:601)","at scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:106)","at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:599)","at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:44)","at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:252)","at scala.concurrent.Promise$class.complete(Promise.scala:55)","at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:157)","at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)","at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)","at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:36)","at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)","at akka.dispatch.BatchingExecutor$Batch.run(BatchingExecutor.scala:73)","at akka.dispatch.ExecutionContexts$sameThreadExecutionContext$.unbatchedExecute(Future.scala:81)","at akka.dispatch.BatchingExecutor$class.execute(BatchingExecutor.scala:120)","at akka.dispatch.ExecutionContexts$sameThreadExecutionContext$.execute(Future.scala:80)","at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:44)","at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:252)","at scala.concurrent.Promise$class.trySuccess(Promise.scala:94)","at scala.concurrent.impl.Promise$DefaultPromise.trySuccess(Promise.scala:157)","at akka.stream.impl.HeadOptionStage$$anon$3.onPush(Sinks.scala:241)","at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:519)","at akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:508)","at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:378)","at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:588)","at akka.stream.impl.fusing.GraphInterpreterShell.init(ActorGraphInterpreter.scala:558)","at akka.stream.impl.fusing.ActorGraphInterpreter.tryInit(ActorGraphInterpreter.scala:679)","at akka.stream.impl.fusing.ActorGraphInterpreter.preStart(ActorGraphInterpreter.scala:727)","at akka.actor.Actor$class.aroundPreStart(Actor.scala:528)","at akka.stream.impl.fusing.ActorGraphInterpreter.aroundPreStart(ActorGraphInterpreter.scala:670)","at akka.actor.ActorCell.create(ActorCell.scala:656)","at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:527)","at akka.actor.ActorCell.systemInvoke(ActorCell.scala:549)","at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:283)","at akka.dispatch.Mailbox.run(Mailbox.scala:224)","at akka.dispatch.Mailbox.exec(Mailbox.scala:235)","at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)","at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)","at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)","at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)"],"data":{"_id":"1c2035c9","_class":"com.arpnetworking.kairos.client.KairosDbRequestException","requestUri":"http://localhost:9415/api/v1/datapoints/query","httpStatus":400,"httpMessage":"Bad Request"}}}},"context":{"host":"ttd1b-i-02d5699f25971b083.aws.dbxnw.net","processId":"91431","threadId":"mportal-akka.actor.default-dispatcher-15","logger":"g.ErrorHandler","line":"53","file":"ErrorHandler.java","class":"global.ErrorHandler"},"id":"d015b460-6723-4099-9645-c1ed6d62d2f9","version":"0"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant