Eoghan Bonass
01/15/2025, 10:40 AMsdk.catalog_data_source.scan_data_source
method is throwing a 500 Internal Server Error, and the corresponding GoodData API request https://{{domain}}/api/v1/actions/dataSources/{{data_source_id}}/scan
is also throwing the same error.
I have evaluated this against one of our non-prod GoodData instances, for an available data_source (i.e. configured correctly with the connection tested).
Using the latest version of the Python SDK (v1.34) and with a properly configured sdk, the following:
sdk.catalog_data_source.scan_data_source(
data_source_id,
CatalogScanModelRequest(scan_tables=False, scan_views=True),
)
returns
ServiceException: Status Code: 500
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 15 Jan 2025 10:09:02 GMT', 'Content-Type': 'application/problem+json', 'Content-Length': '140', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'X-GDC-TRACE-ID': 'fe45d4f454e1d254cb5909d6067df789', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Content-Type-Options': 'nosniff', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains', 'X-XSS-Protection': '0', 'Referrer-Policy': 'no-referrer', 'set-cookie': 'SPRING_REDIRECT_URI=; Max-Age=0; Expires=Wed, 15 Jan 2025 10:09:02 GMT; Path=/; Secure; HTTPOnly; SameSite=None'})
HTTP response body: {"detail":"Server-side problem. Contact support.","status":500,"title":"Internal Server Error","traceId":"fe45d4f454e1d254cb5909d6067df789"}
Similarly, an authenticated POST to https://{{domain}}/api/v1/actions/dataSources/{{data_source_id}}/scan
for the same data source and GD instance with this body:
{
"scanTables": false,
"scanViews": true,
"separator": "__"
}
returns
{
"detail": "Server-side problem. Contact support.",
"status": 500,
"title": "Internal Server Error",
"traceId": "b66bf8b942259a5d22d4dc6807590d2a"
}
This is a critical issue for us - could GoodData support and engineering please look into this?Daniela Salmeron
01/15/2025, 11:22 AMEoghan Bonass
01/15/2025, 12:41 PMEoghan Bonass
01/15/2025, 12:41 PMDaniela Salmeron
01/15/2025, 12:41 PMEoghan Bonass
01/15/2025, 12:42 PMDaniela Salmeron
01/15/2025, 1:49 PMEoghan Bonass
01/15/2025, 1:51 PMFrancisco Antunes
01/15/2025, 2:48 PMEoghan Bonass
01/15/2025, 3:46 PMFrancisco Antunes
01/15/2025, 4:53 PMEoghan Bonass
01/16/2025, 8:46 AM