axel3rd / mpg-grandslam-populator

Routines to populate MPG GrandSlam database
1 stars 0 forks source link

"null" in MPG API URI when some leagues are followed #31

Closed axel3rd closed 3 years ago

axel3rd commented 3 years ago

Since 15 September, batch crash with:

2021-09-15 06:42:19.311  INFO 4733 --- [           main] o.b.m.GrandslamPopulatorBatchApplication : Started GrandslamPopulatorBatchApplication in 9.962 seconds (JVM running for 18.028)
2021-09-15 06:42:19.586  INFO 4733 --- [           main] o.blonding.mpg.tasklet.MpgDatasTasklet   : --- Retrieve MPG Datas and Leagues to use...
2021-09-15 06:42:21.497 ERROR 4733 --- [           main] o.s.batch.core.step.AbstractStep         : Encountered an error executing step stepMpgDatas in job jobGrandSlamPopulator

org.springframework.web.reactive.function.client.WebClientResponseException$BadRequest: 400 Bad Request from GET https://api.mpg.football/division/null/ranking/standings

The null is to troubleshoot.


Complete log: grandslam-populator-batch.log SQL data for UT: mpg-grandslam-populator.zip

axel3rd commented 3 years ago

Root cause: Problem occurs when a league is "followed" in dashboard.