Thank you sharing this, it makes sense (wrt newly added functionality in location, content source).
-+ Tatu +- On Tue, Jun 6, 2023 at 6:03 AM Gili Tzabari <gili.tzab...@gmail.com> wrote: > > For what it's worth, I worked around the problem this way: > > Throwable throwable = result.getThrowable(); > if (throwable instanceof JsonProcessingException jpe) > { > // Jackson truncates the JSON if it's too long. Let's log the full content. > Object rawContent = jpe.getLocation().contentReference().getRawContent(); > log.error(rawContent.toString()); > } > > It's still ugly in the sense that there is no way to disable the original > exception, so I get a truncated exception message first followed by this log. > > Gili > > On 2023-06-05 18:30, Tatu Saloranta wrote: > > There is no way to configure this currently. > > If anyone has time and interest in making this configurable I'd be > happy to help; it'd need to go via `JsonFactory.builder()` > configuration. But static config methods (static method, system > properties) not acceptable. > > Ideally there would probably an extensible set (similar to new > StreamReadConstraints setting, but different) to modify so it'd be > easier to add/configure different settings. > > -+ Tatu +- > > On Mon, Jun 5, 2023 at 3:24 PM Gili <gili.tzab...@gmail.com> wrote: > > Hi, > > When Jackson throws an exception, it quotes the JSON that triggered the > exception. Unfortunately, after MAX_ERROR_TOKEN_LENGTH bytes it truncates the > message so if a section of interest is further down it becomes very hard to > debug. > > Is it possible to make this limit configurable? > > Thank you, > Gili > > -- > You received this message because you are subscribed to the Google Groups > "jackson-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jackson-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jackson-user/9eca88c0-53dd-421e-b931-c8580c69be63n%40googlegroups.com. > > -- > You received this message because you are subscribed to the Google Groups > "jackson-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jackson-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jackson-user/aaadd7bf-718c-0cc4-0619-9116912b3103%40gmail.com. -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/CAL4a10jgObQx05zZQYkouoGYWy4gS-LiA%3Dd1r_hSADJ%2B8CCeGA%40mail.gmail.com.