feldera 0.131.0__tar.gz → 0.132.0__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 feldera might be problematic. Click here for more details.
- {feldera-0.131.0 → feldera-0.132.0}/PKG-INFO +1 -1
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/errors.py +16 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera.egg-info/PKG-INFO +1 -1
- {feldera-0.131.0 → feldera-0.132.0}/pyproject.toml +1 -1
- {feldera-0.131.0 → feldera-0.132.0}/README.md +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/__init__.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/_callback_runner.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/_helpers.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/enums.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/output_handler.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/pipeline.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/pipeline_builder.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/__init__.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/_helpers.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/_httprequests.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/config.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/feldera_client.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/feldera_config.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/pipeline.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/sql_table.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/rest/sql_view.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/runtime_config.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera/stats.py +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera.egg-info/SOURCES.txt +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera.egg-info/dependency_links.txt +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera.egg-info/requires.txt +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/feldera.egg-info/top_level.txt +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/setup.cfg +0 -0
- {feldera-0.131.0 → feldera-0.132.0}/tests/test_uda.py +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from requests import Response
|
|
2
2
|
import json
|
|
3
|
+
from urllib.parse import urlparse
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
class FelderaError(Exception):
|
|
@@ -40,6 +41,21 @@ class FelderaAPIError(FelderaError):
|
|
|
40
41
|
self.details = json_data.get("details")
|
|
41
42
|
except Exception:
|
|
42
43
|
self.message = request.text
|
|
44
|
+
err_msg += request.text
|
|
45
|
+
|
|
46
|
+
err_msg += f"\nResponse Status: {request.status_code}"
|
|
47
|
+
|
|
48
|
+
if int(request.status_code) == 401:
|
|
49
|
+
parsed = urlparse(request.request.url)
|
|
50
|
+
|
|
51
|
+
auth_err = f"\nAuthorization error: Failed to connect to '{parsed.scheme}://{parsed.hostname}': "
|
|
52
|
+
auth = request.request.headers.get("Authorization")
|
|
53
|
+
if auth is None:
|
|
54
|
+
err_msg += f"{auth_err} API key not set"
|
|
55
|
+
else:
|
|
56
|
+
err_msg += f"{auth_err} invalid API key"
|
|
57
|
+
|
|
58
|
+
err_msg = err_msg.strip()
|
|
43
59
|
|
|
44
60
|
super().__init__(err_msg)
|
|
45
61
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|