From a250feb12aaedb25fedaf6df36dc3f0e846b0618 Mon Sep 17 00:00:00 2001 From: Nick Cappadona Date: Fri, 19 Jan 2024 13:07:54 -0500 Subject: [PATCH] [CORE-5238] JSON encode params for database endpoint --- intake_metabase/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intake_metabase/source.py b/intake_metabase/source.py index 45753eb..bf24104 100644 --- a/intake_metabase/source.py +++ b/intake_metabase/source.py @@ -214,7 +214,7 @@ def get_databases(self): self._create_or_refresh_token() headers = _merge_dicts({'X-Metabase-Session': self._token}, self.extra_headers) - params = {'include': 'tables', 'saved': True} + params = json.dumps({'include': 'tables', 'saved': True}) res = requests.get( urljoin(self.domain, '/api/database'),