Content service issue in OCI environment #160
santhosh-tg
started this conversation in
Bugs
Replies: 2 comments 7 replies
-
thanks @gandham-santhosh. |
Beta Was this translation helpful? Give feedback.
7 replies
-
oss url by default sends chunked response. The content service expect a single stream for json parse. If we use OSS s3 url frontended by an nginx reverse proxy, as setting is added in the nginx file
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @pallakartheekreddy we are facing this error in content service deployed in Oracle cloud.
Schema path: https://XXXXXXX.compat.objectstorage.ap-hyderabad-1.oraclecloud.com/sunbird-content-dev/schemas/local/content/1.0/schema.json javax.json.stream.JsonParsingException: Unexpected char 0 at (line no=71, column no=21, offset=1957) at org.glassfish.json.JsonTokenizer.unexpectedChar(JsonTokenizer.java:577) at org.glassfish.json.JsonTokenizer.readString(JsonTokenizer.java:165) at org.glassfish.json.JsonTokenizer.nextToken(JsonTokenizer.java:355) at org.glassfish.json.JsonParserImpl$ArrayContext.getNextEvent(JsonParserImpl.java:535) at org.glassfish.json.JsonParserImpl.next(JsonParserImpl.java:352) at org.leadpony.justify.internal.base.json.JsonParserDecorator.fetchNextEvent(JsonParserDecorator.java:110) at org.leadpony.justify.internal.base.json.AbstractStreamJsonParser.next(AbstractStreamJsonParser.java:52) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.parseArray(JsonSchemaReaderImpl.java:205) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.parseValue(JsonSchemaReaderImpl.java:185) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.parseObject(JsonSchemaReaderImpl.java:227) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.parseValue(JsonSchemaReaderImpl.java:187) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.parseObject(JsonSchemaReaderImpl.java:227) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.parseValue(JsonSchemaReaderImpl.java:187) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.parseObject(JsonSchemaReaderImpl.java:227) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.parseValue(JsonSchemaReaderImpl.java:187) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.readRootSchema(JsonSchemaReaderImpl.java:174) at org.leadpony.justify.internal.schema.io.JsonSchemaReaderImpl.readSchema(JsonSchemaReaderImpl.java:97) at org.leadpony.justify.internal.schema.io.AbstractJsonSchemaReader.read(AbstractJsonSchemaReader.java:73) at org.leadpony.justify.internal.schema.io.AbstractProbeSchemaReader.readSchema(AbstractProbeSchemaReader.java:53) at org.leadpony.justify.internal.schema.io.AbstractJsonSchemaReader.read(AbstractJsonSchemaReader.java:73) at org.sunbird.schema.impl.BaseSchemaValidator.readSchema(BaseSchemaValidator.java:73) at org.sunbird.schema.impl.JsonSchemaValidator.loadSchema(JsonSchemaValidator.java:38) at org.sunbird.schema.impl.JsonSchemaValidator.<init>(JsonSchemaValidator.java:24) at org.sunbird.schema.SchemaValidatorFactory.initSchema(SchemaValidatorFactory.java:49) at org.sunbird.schema.SchemaValidatorFactory.getInstance(SchemaValidatorFactory.java:21) at org.sunbird.graph.schema.IDefinition.<init>(IDefinition.scala:11) at org.sunbird.graph.schema.validator.BaseDefinitionNode.<init>(BaseDefinitionNode.scala:17) at org.sunbird.graph.schema.DefinitionDTO.<init>(DefinitionDTO.scala:18) at org.sunbird.graph.schema.DefinitionFactory$$anonfun$1.apply(DefinitionFactory.scala:14) at org.sunbird.graph.schema.DefinitionFactory$$anonfun$1.apply(DefinitionFactory.scala:14) at scala.collection.MapLike$class.getOrElse(MapLike.scala:128) at scala.collection.AbstractMap.getOrElse(Map.scala:59) at org.sunbird.graph.schema.DefinitionFactory$.getDefinition(DefinitionFactory.scala:14) at org.sunbird.graph.schema.DefinitionNode$.getNode(DefinitionNode.scala:72) at org.sunbird.graph.nodes.DataNode$.read(DataNode.scala:56) at org.sunbird.content.actors.ContentActor.read(ContentActor.scala:78) at org.sunbird.content.actors.ContentActor.onReceive(ContentActor.scala:43) at org.sunbird.actor.core.BaseActor.internalOnReceive(BaseActor.java:29) at org.sunbird.actor.core.BaseActor.lambda$createReceive$0(BaseActor.java:43) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:24) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:20) at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123) at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20) at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170) at akka.actor.Actor$class.aroundReceive(Actor.scala:539) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:226) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:610) at akka.actor.ActorCell.invoke(ActorCell.scala:579) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:268) at akka.dispatch.Mailbox.run(Mailbox.scala:229) at akka.dispatch.Mailbox.exec(Mailbox.scala:241) 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) Exception occurred - class :javax.json.stream.JsonParsingException with message :Unexpected char 0 at (line no=71, column no=21, offset=1957) 2023-10-26 13:48:35,557 ProducerConfig values:
Have shared the actual Schema path over slack.
Build tag: release-5.5.0_RC1
Please help to check on this.
Cc: @gandham-santhosh @rajeevsathish @ashokreddy1208
Thanks,
Santhosh
Beta Was this translation helpful? Give feedback.
All reactions