-
Notifications
You must be signed in to change notification settings - Fork 136
Description
Repro is with Zui commit 21abbf6.
Steps shown in the attached video:
- Load some sample data into Zui
- Click + and New Query Session
- 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.
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.
And based on my added console logging, it looks like this is getting handled as a DefaultError at this line:
| return <DefaultError {...props} /> |

