gouline / dbt-metabase

dbt + Metabase integration
https://pypi.org/project/dbt-metabase/
MIT License
461 stars 71 forks source link

Requests failing due to "include_hidden" not being valid boolean string #198

Closed wdtrott closed 9 months ago

wdtrott commented 9 months ago

Platform details: Metabase version: v1.48.0 dbt-metabase version: v0.10.1

My team is encountering the following error when trying to export models through a python script:

HTTP request failed. Payload: None. 
Response: {"errors":{"include_hidden":"nullable value must be a valid boolean string ('true' or 'false')."},
"specific-errors":{"include_hidden": must be a valid boolean string ('true' or 'false')., received: \"True\""]}}

We are using an almost direct copy of what is in the readme, and have been syncing successfully for the past month. Based on the error, the issue appears to stem from this line in the _load_tables method.

gouline commented 9 months ago

Interesting, I didn't realise GET params in requests don't get properly serialised to string. Fixed in 0.10.2.