Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-08-03 Thread 김주혁
This has been resolved by https://github.com/FasterXML/jackson-core/issues/1066, in Jackson 2.16. On Sunday, June 11, 2023 at 2:17:20 PM UTC+9 Joo Hyuk Kim (김주혁) wrote: > FYI, made a PR https://github.com/FasterXML/jackson-core/pull/1043 👍🏻 > > On Sunday, June 11, 2023 at 8:48:25 AM UTC+9 Tatu S

Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-10 Thread 김주혁
FYI, made a PR https://github.com/FasterXML/jackson-core/pull/1043 👍🏻 On Sunday, June 11, 2023 at 8:48:25 AM UTC+9 Tatu Saloranta wrote: > On Sat, Jun 10, 2023 at 7:04 AM Joo Hyuk Kim (김주혁) > wrote: > > > > I will try to implement the configuration. If that's okay? 🙏🏼 > > Absolutely! > > -+ Tat

Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-10 Thread Tatu Saloranta
On Sat, Jun 10, 2023 at 7:04 AM Joo Hyuk Kim (김주혁) wrote: > > I will try to implement the configuration. If that's okay? 🙏🏼 Absolutely! -+ Tatu +- > On Wednesday, June 7, 2023 at 3:53:08 AM UTC+9 Tatu Saloranta wrote: >> >> Thank you sharing this, it makes sense (wrt newly added functionality >

Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-10 Thread 김주혁
I will try to implement the configuration. If that's okay? 🙏🏼 On Wednesday, June 7, 2023 at 3:53:08 AM UTC+9 Tatu Saloranta wrote: > 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

Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-06 Thread Tatu Saloranta
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 wrote: > > For what it's worth, I worked around the problem this way: > > Throwable throwable = result.getThrowable(); > if (throwable instan

Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-06 Thread Gili Tzabari
For what it's worth, I worked around the problem this way: Throwable throwable = result.getThrowable(); if (throwableinstanceof JsonProcessingException jpe) { // Jackson truncates the JSON if it's too long. Let's log the full content. Object rawContent = jpe.getLocation().contentReference().g

Re: [jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-05 Thread Tatu Saloranta
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 ex

[jackson-user] RFE: Make MAX_ERROR_TOKEN_LENGTH configurable

2023-06-05 Thread Gili
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 yo