influxdata / influxdata/ui

notebooks don't give the same visibility to errors as data explorer does

Open
#3,153 9 comments 0 reactions 1 assignee Claimed by @jzahnd View on GitHub
area/notebooks kind/bug team/automation team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

Here was my flux script:

```
import "http"

http.post(url: "https://us-central1-1.gcp.cloud2.influxdata.com/api/v2/scripts/086381b08d86c000/invoke",
headers: {
Accept : "application/csv",
"Content-Type": "application/json",
Authorization : "Token MYTOKENGOESHERE"
}
)
```
The problem with the script is that http.post only returns the post response code (200, 404 etc.) and not the response body, so there was nothing to visualize in the table.The error I got in notebooks (in the validation panel) was:
`error @4:5-4:18: expected [A] but found int (argument tables)`

The error I got in data explorer was:
`error in query specification while starting program: this Flux script returns no streaming data. Consider adding a "yield" or invoking streaming functions directly, without performing an assignment`

The data explorer error was a lot more useful to try to figure out what was going on.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.