Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json Deserialization error #836

Closed
itadapter opened this issue Mar 8, 2023 · 2 comments
Closed

Json Deserialization error #836

itadapter opened this issue Mar 8, 2023 · 2 comments
Assignees
Labels
- RTM - Released to manufacturing AREA-SERIALIZATION Serialization bug Something isn't working CRITICAL Critical Issue affecting the whole system

Comments

@itadapter itadapter added bug Something isn't working CRITICAL Critical Issue affecting the whole system AREA-SERIALIZATION Serialization labels Mar 8, 2023
@itadapter itadapter self-assigned this Mar 8, 2023
@itadapter
Copy link
Contributor Author

See the bad body captured:

bad-json-body.txt

Error

{
  "OK": false,
  "http::code": 400,
  "http::descr": "Bad Request body",
  "error": "MvcException",
  "isauth": false,
  "data":
    {
      "ns": "wave.mvc",
      "type": "HTTPStatusException",
      "code": 0,
      "cause":
        {
          "ns": "ser.json",
          "type": "JazonDeserializationException",
          "code": 0,
          "jz.code": "eUnterminatedObject",
          "jz.txt": "Unterminated object",
          "jz.p.char": 3845,
          "jz.p.ln": 1,
          "jz.p.col": 3845,
          "jz.path": "{batch{Data[#0{",
          "jz.src": "0\\\\\\\",\\\\\\\"--info-level\\\\\\\":\\\\\\\"1\\\\\\\",\\\\\\\"allow\\\\\\\":{\\\\\\\"entity\\\\\\\":\\\\\\\"*\\\\\\\"}}},\\\\\>        },
      "http::code": 400,
      "http::descr": "Bad Request body"
    },
  "dev::dump":
    {
      "TypeName": "Azos.Wave.FilterPipelineException",
      "Message": ">>error>backend-info>realip>callflow>Portal>session>dconv>latency>cors>  [Azos.Wave.MvcException] MVC handler error in work processi>

@itadapter
Copy link
Contributor Author

According to unit test, this is not a JSON problem.
Looks like it is HTTP transport cutting 3900+char datagram at 3845, consequently the data fed to JSON deserializer is truncated and "UnterminatedObject" results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- RTM - Released to manufacturing AREA-SERIALIZATION Serialization bug Something isn't working CRITICAL Critical Issue affecting the whole system
Projects
None yet
Development

No branches or pull requests

1 participant