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

Error during OtoroshiVerifierJob #768

Open
sadmin91 opened this issue Nov 8, 2024 · 2 comments
Open

Error during OtoroshiVerifierJob #768

sadmin91 opened this issue Nov 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sadmin91
Copy link

sadmin91 commented Nov 8, 2024

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

  • Daikoku version: 16.3.6
  • Otoroshi version: 16.19.0
@sadmin91 sadmin91 added the bug Something isn't working label Nov 8, 2024
@quentinovega
Copy link
Contributor

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

@sadmin91
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants