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

/api/dataset/* does not work with custom queries #5635

paoliniluis opened this issue Jul 28, 2017 · 3 comments


None yet
3 participants
Copy link

commented Jul 28, 2017

When I write a query with the builder, I can download the results to any format without issues, the API responds perfectly.

When the same query is built manually (a custom SQL query), the API responds with a 404 and I cannot download anything (even csv, json or xlsx)

  • Your browser and the version: Any, it happens with all browsers

  • Your operating system: Any, it happens with all OSs

  • Your databases: currently Redshift, not working

  • Metabase version: 0.25.1

  • Metabase hosting environment: Ubuntu Linux

  • Metabase internal database: Postgre

  • Repeatable steps to reproduce the issue
    Build a query with the query builder, click on download and it downloads OK
    Try to do a custom query with a SQL syntax, click on download, it will show "not found 404"


This comment has been minimized.

Copy link

commented Jul 28, 2017

@paoliniluis I'm not able to reproduce your issue. What API endpoint is getting called that returns the 404? You can look in the server logs or in your browser's Network pane


This comment has been minimized.

Copy link

commented Nov 14, 2017

@paoliniluis I'm going to go ahead and close this out since we we're able to reproduce it and haven't heard back after asking for more info since July. If you run into any more issues please let us know.

@camsaul camsaul closed this Nov 14, 2017


This comment has been minimized.

Copy link

commented Apr 9, 2018

I actually encountered this as well.

The URL is a POST to /api/dataset/csv

This was the post data:

query: {"database":-1337,"type":"query","query":{"source_table":"card__3","filter":["AND",["CONTAINS",["field-id",["field-literal","email","type/Text"]],"example"]]},"parameters":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.