question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

400 JSON parse error when "constant.value=null"

See original GitHub issue

When the execution plan contains a literal with value: null then POST /producer/execution-plans returns 400.

{
  "id": "7c505765-7218-479e-b0b0-c31e6d63d68a",
  "dataType": "3a278371-515e-4090-9790-6b48a757491b",
  "extra": {
    "simpleClassName": "Literal",
    "_typeHint": "expr.Literal"
  },
  "value": null
}
com.twitter.finatra.json.internal.caseclass.exceptions.CaseClassValidationException: expressions.constants.value: field is required

The issue is related to AbsaOSS/spline-spark-agent#200

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
wajdacommented, Apr 28, 2021

That’s a Twitter Finatra Jackson deserializer issue. It seems to require non-null values for non-optional fields. I need to investigate what can we do about it.

1reaction
cerveadacommented, May 10, 2021

Ok I will fork the Finatra.

One potential issue there is that they seem to make mandatory only case class fields. But since we use case classes everywhere in the API it’s not a problem for us right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Error 400 and json parse error while submit data ...
I am using iteaduino nano with esp8266 (esp-01) using esp8266 library from ubidots and I got http 400 while submitting to ubidots. beside...
Read more >
Parsing JSON in Spring Boot, part 2 - DEV Community ‍ ‍
The same simple JSON request body parsed as an immutable Java object ... 400, "error": "Bad Request", "message": "JSON parse error: Cannot ...
Read more >
SyntaxError: JSON.parse: bad parsing - JavaScript | MDN
JSON.parse() parses a string as JSON. This string has to be valid JSON and will throw this error if incorrect syntax was encountered....
Read more >
Search REST API Reference - Algolia
The entire API uses JSON encoded as UTF-8. ... Errors: 400 : Bad request or request argument; 404 : Index does not exist....
Read more >
Bad request 400 JSON parse error - Stack Overflow
Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unrecognized token ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found