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

error in csv.from(): csv.from() failed to read file: filesystem service is uninitialized #5507

Open
songhaisheng98 opened this issue Oct 29, 2024 · 1 comment

Comments

@songhaisheng98
Copy link

load a csv file by csv.from failed

Through InfluxDB UI ,
image

Through postman
image

how to upload csv file by csv.from()?

@sanderson
Copy link
Contributor

@songhaisheng98 For security reasons, InfluxDB restricts file system access at query time, so you can't use csv.from() to load CSV data from a file on disk using the InfluxDB UI. You can do it in the Flux REPL, which does allow access to the underlying filesystem. When using the Flux REPL, the Flux process runs independently from InfluxDB and is not limited by that restriction.

Another option would be to retrieve the CSV data using an HTTP request, formatting the response as a string, then using the CSV string with csv.from() to load the CSV data. The CSV file just needs to be made available via HTTP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants