Skip to content

Meta-query returns "SyntaxError: Unexpected end of JSON input" #3093

@philrz

Description

@philrz

Repro is with Zui commit 21abbf6.

Steps shown in the attached video:

  1. Load some sample data into Zui
  2. Click + and New Query Session
  3. Run the meta-query from :branches

At Zui commit 21abbf6 (associated with the changes in #3085) the app shows the error "SyntaxError: Unexpected end of JSON input". At prior commit, ad5657d the meta-query result was successfully shown.

Repro.mp4

I poked through the changes in #3085 and I think I see what's going on, which is also visible in the attached packet captures
ad5657d.pcapng.gz and 21abbf6.pcapng.gz that I took when performing this operation at the respective commits. If we Follow TCP Stream in Wireshark on each, for the ad5657d case, we see that the API activity halts after the app gets a response to its query from :branches\n | count()\n | { i: count(), v: this}\n | i > 0\n | head 500\n | yield v.

image

Whereas at commit 21abbf6 that same first query result comes back much the same, but then the app marches on and issues a query from undefined | min(ts), max(ts) which comes back with an HTTP 400 Bad Request.

image

And based on my added console logging, it looks like this is getting handled as a DefaultError at this line:

return <DefaultError {...props} />

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions