MAIF / daikoku

The developer portal that was missing in Otoroshi
https://maif.github.io/daikoku
Apache License 2.0
29 stars 7 forks source link

Error during OtoroshiVerifierJob #768

Open sadmin91 opened 1 week ago

sadmin91 commented 1 week ago

Describe the bug When I update an API plan on Daikoku an asynchronous job is run on Daikoku to update Otoroshi data. During this job execution, this error is loggued on Daikoku log file:

OtoroshiVerifierJob - Verifying sync between daikoku and otoroshi [error] application - JsResultException(errors:List((,List(JsonValidationError(List(null is not an object),List()))))) play.api.libs.json.JsResultException: JsResultException(errors:List((,List(JsonValidationError(List(null is not an object),List()))))) at play.api.libs.json.JsReadable.$anonfun$as$2(JsReadable.scala:25) at play.api.libs.json.JsError.fold(JsResult.scala:66) at play.api.libs.json.JsReadable.as(JsReadable.scala:24) at play.api.libs.json.JsReadable.as$(JsReadable.scala:23) at play.api.libs.json.JsUndefined.as(JsLookup.scala:193) at fr.maif.otoroshi.daikoku.domain.json$$anon$88.$anonfun$reads$312(json.scala:2892) at scala.util.Try$.apply(Try.scala:210) at fr.maif.otoroshi.daikoku.domain.json$$anon$88.reads(json.scala:2890) at play.api.libs.json.JsValue.validate(JsValue.scala:17) at play.api.libs.json.JsValue.validate$(JsValue.scala:16) [error] application - JsResultException(errors:List((,List(JsonValidationError(List(null is not an object),List())))))

Despite this error, Otoroshi data is updated.

To Reproduce Steps to reproduce the behavior:

  1. On Daikoku try to update an usage plan
  2. See error on Daikoku log file

Expected behavior No error loggued on Daikoku log file.

Additional context

quentinovega commented 5 days ago

I can't reproduce your issue. Could you please post the entire stack trace ?

sadmin91 commented 4 days ago

I don't have any additional information on log file.