General - Getting this error - Frontend - play.api...
# troubleshoot
h
General - Getting this error - Frontend - play.api.UnexpectedException: Unexpected exception[CompletionException: akka.http.scaladsl.model.EntityStreamException: Entity stream truncation] at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:247) at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:176) at play.core.server.AkkaHttpServer$$anonfun$2.applyOrElse(AkkaHttpServer.scala:363) at play.core.server.AkkaHttpServer$$anonfun$2.applyOrElse(AkkaHttpServer.scala:361) at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:346) at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:345) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:36) at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:92) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:92) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:92) at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72) at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:91) at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:49) 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) GMS - Suppressed: org.elasticsearch.common.ParsingException: Failed to parse object: expecting field with name [error] but found [Message] at org.elasticsearch.common.xcontent.XContentParserUtils.ensureFieldName(XContentParserUtils.java:50) at org.elasticsearch.ElasticsearchException.failureFromXContent(ElasticsearchException.java:592) at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:179) at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1892) at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1869) ... 19 common frames omitted Caused by: org.elasticsearch.client.ResponseException: method [POST], host [https://es.us-east-1.es.amazonaws.com:443], URI [/_bulk?timeout=1m], status line [HTTP/1.1 403 Forbidden] {"Message":"User: anonymous is not authorized to perform: es:ESHttpPost"} at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:302) at org.elasticsearch.client.RestClient.access$1700(RestClient.java:100) at org.elasticsearch.client.RestClient$1.completed(RestClient.java:350) ... 16 common frames omitted
b
Hi there! This is because our frontend service talks to elastic for capturing user analytics tracking events. It seems that you need to provide the AWS user context when calling elastic. @early-lamp-41924 Have we had to provide this in our own deployments? If you don't care about tracking user analytics, you can simply add the
Copy code
ANALYTICS_ENABLED=false
env variable for the
datahub-frontend
container
h
Looks like there was some connectivity issue with Elastisearch, fixed that and now it is working. Adding the above fields to our values.yaml errored out, didnt like the variable.
e
yeah you should not add that directly. we have a setting in values under global for enabing analytics
glad it got sorted out tho!
h
Got it, it goes into the global will keep that in mind.
b
Awesome!!!