dbt-cube-sync 0.1.0a9__tar.gz → 0.1.0a10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dbt-cube-sync might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbt-cube-sync
3
- Version: 0.1.0a9
3
+ Version: 0.1.0a10
4
4
  Summary: Synchronization tool for dbt models to Cube.js schemas and BI tools
5
5
  Author: Ponder
6
6
  Requires-Python: >=3.9,<4.0
@@ -60,13 +60,19 @@ class SupersetConnector(BaseConnector):
60
60
  """Authenticate and get JWT token"""
61
61
  login_url = f"{self.base_url}/api/v1/security/login"
62
62
  payload = {
63
- "username": self.config['username'],
64
63
  "password": self.config['password'],
65
64
  "provider": "db",
66
- "refresh": True
65
+ "refresh": "true",
66
+ "username": self.config['username']
67
67
  }
68
-
68
+
69
69
  response = self.session.post(login_url, json=payload)
70
+ if response.status_code == 401:
71
+ raise Exception(
72
+ f"Superset authentication failed (401). "
73
+ f"Check username/password and ensure provider='{payload['provider']}' is correct. "
74
+ f"Response: {response.text}"
75
+ )
70
76
  response.raise_for_status()
71
77
 
72
78
  data = response.json()
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dbt-cube-sync"
3
- version = "0.1.0a9"
3
+ version = "0.1.0a10"
4
4
  description = "Synchronization tool for dbt models to Cube.js schemas and BI tools"
5
5
  authors = ["Ponder"]
6
6
  readme = "README.md"