Skip to content

Instantly share code, notes, and snippets.

@dsilvasc
Created June 8, 2020 21:08
Show Gist options
  • Save dsilvasc/c3fae184c7d907abc70870d5a8698822 to your computer and use it in GitHub Desktop.
Save dsilvasc/c3fae184c7d907abc70870d5a8698822 to your computer and use it in GitHub Desktop.
curl -v -X POST -H "SC-LCA-1: $(snapaccess jwt make story-creation)" 'http://localhost:8001/task/readreceipts/published/3:2583944343189504'
2020-06-08 22:06:07.133 [INFO ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [ReadReceiptsHandler] ReadReceiptsHandler request received: /task/readreceipts/published/3:2583944343189504
2020-06-08 22:06:07.137 [INFO ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [ReadReceiptsHandler] ReadReceiptsHandler measuring watch count for namespace: STORY_CREATION_SERVICE_COMPAT
id: "2583944343189504"
2020-06-08 22:06:07.152 [INFO ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [ReadReceiptsHandler] ReadReceiptsHandler requesting Story View count for NumericStoryID(2583944343189504)
2020-06-08 22:06:07.173 [INFO ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [ReadReceiptClient] sending getPremiumContentStats request to rr-server-g-aws-dev.snap - metadata {
request_id: "7f02dc28-ec61-47d3-840b-6cb220df00f8"
request_timestamp_ms: 1591650367172
origin: STORY_STUDIO
}
ids {
content_type: EDITION_PUBLISHER
story_id: "2583944343189504"
}
2020-06-08 22:06:10.184 [WARN ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [GrpcLoggedCall] Request failed ranking.pii.readreceipt.SnapReadReceiptService/GetPremiumContentStats: Status{code=PERMISSION_DENIED, description=invalid principal, cause=null} Metadata()
2020-06-08 22:06:10.191 [WARN ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [GrpcToProstErrorFilter$] Upstream call failed: io.grpc.StatusRuntimeException: PERMISSION_DENIED: invalid principal
For ranking.pii.readreceipt.SnapReadReceiptService/GetPremiumContentStats
at io.grpc.Status.asRuntimeException(Status.java:526)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:37)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at snapchat.grpc.lca.GrpcLoggedCall$$anon$1.onClose(LcaGrpcClientFactory.scala:115)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:37)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:37)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:471)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:553)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:474)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:591)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at snapchat.concurrent.MDCValueExecutionContext.$anonfun$execute$1(MDCValueExecutionContext.scala:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "WebServerContext-blocking-4" java.lang.NoSuchMethodError: akka.http.scaladsl.model.HttpEntity$.apply(Lakka/http/scaladsl/model/ContentType$WithFixedCharset;Ljava/lang/String;)Lakka/http/scaladsl/model/HttpEntity$Strict;
at snapchat.http.mappers.StatusMapper$.statusProtoToHttpResponse(StatusMapper.scala:100)
at snapchat.http.mappers.StatusMapper$.upstreamExceptionToHttpResponse(StatusMapper.scala:91)
at snapchat.http.filters.GrpcToProstErrorFilter$$anonfun$apply$1.applyOrElse(GrpcToProstErrorFilter.scala:17)
at snapchat.http.filters.GrpcToProstErrorFilter$$anonfun$apply$1.applyOrElse(GrpcToProstErrorFilter.scala:14)
at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)
at scala.util.Failure.recover(Try.scala:234)
at scala.concurrent.Future.$anonfun$recover$1(Future.scala:395)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at snapchat.concurrent.ExecutionContexts$Direct$.execute(ExecutionContexts.scala:8)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1$adapted(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:288)
at scala.concurrent.Promise.complete(Promise.scala:53)
at scala.concurrent.Promise.complete$(Promise.scala:52)
at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:187)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at snapchat.concurrent.ExecutionContexts$Direct$.execute(ExecutionContexts.scala:8)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1$adapted(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:288)
at scala.concurrent.Promise.complete(Promise.scala:53)
at scala.concurrent.Promise.complete$(Promise.scala:52)
at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:187)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at snapchat.concurrent.ExecutionContexts$Direct$.execute(ExecutionContexts.scala:8)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1$adapted(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:288)
at scala.concurrent.Promise.complete(Promise.scala:53)
at scala.concurrent.Promise.complete$(Promise.scala:52)
at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:187)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at snapchat.concurrent.ExecutionContexts$Direct$.execute(ExecutionContexts.scala:8)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1$adapted(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:288)
at scala.concurrent.Promise.complete(Promise.scala:53)
at scala.concurrent.Promise.complete$(Promise.scala:52)
at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:187)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at snapchat.concurrent.ExecutionContexts$Direct$.execute(ExecutionContexts.scala:8)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1$adapted(Promise.scala:288)
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:288)
at scala.concurrent.Promise.complete(Promise.scala:53)
at scala.concurrent.Promise.complete$(Promise.scala:52)
at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:187)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at snapchat.concurrent.MDCValueExecutionContext.$anonfun$execute$1(MDCValueExecutionContext.scala:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2020-06-08 22:07:06.992 [INFO ] [ActorSystemImpl] Request timeout encountered for request [POST /task/readreceipts/published/3:2583944343189504 Empty]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment