hectorqin / reader

阅读3服务器版,桌面端,iOS可用。后端 Kotlin + Spring Boot + Vert.x + Coroutine ;前端 Vue.js + Element。麻烦点点star,关注一下公众号【假装大佬】❗️ Demo服务器由于未备案已被关停,建议自行搭建
GNU General Public License v3.0
8.42k stars 5.24k forks source link

解析内容出错:Failed to decode:No content to map due to end-of-input #333

Closed DingSama closed 1 year ago

DingSama commented 1 year ago

之前运行还是正常的,今天就不行了

2023-03-17 06:13:49 [59a5365f] [DefaultDispatcher-worker-1] ERROR com.htmake.reader.api.YueduApi - onHandlerError: io.vertx.core.json.DecodeException: Failed to decode:No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0] at io.vertx.core.json.jackson.JacksonCodec.fromParser(JacksonCodec.java:97) at io.vertx.core.json.jackson.JacksonCodec.fromString(JacksonCodec.java:57) at io.vertx.core.json.JsonArray.fromJson(JsonArray.java:845) at io.vertx.core.json.JsonArray.(JsonArray.java:54) at com.htmake.reader.utils.ExtKt.asJsonArray(Ext.kt:439) at com.htmake.reader.api.controller.BookController.getBookShelfBooks(BookController.kt:1845) at com.htmake.reader.api.controller.BookController.getBookshelf(BookController.kt:1247) at com.htmake.reader.api.YueduApi$initRouter$21.invokeSuspend(YueduApi.kt:233) at com.htmake.reader.api.YueduApi$initRouter$21.invoke(YueduApi.kt) at com.htmake.reader.api.YueduApi$initRouter$21.invoke(YueduApi.kt) at com.htmake.reader.verticle.RestVerticle$coroutineHandler$1$2.invokeSuspend(RestVerticle.kt:163) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0] at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4145) at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3971) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2276) at io.vertx.core.json.jackson.JacksonCodec.fromParser(JacksonCodec.java:95) ... 16 common frames omitted

hectorqin commented 1 year ago

看看详细日志,会告诉你哪个json文件内容有问题