n8n-nodes-jygse-vw-weconnect 0.1.15 → 0.1.16
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.
|
@@ -243,8 +243,17 @@ async function vwLogin(context, email, password) {
|
|
|
243
243
|
}
|
|
244
244
|
// Debug: If we got an error page (status 400/500 or "Oops" in content), throw with details
|
|
245
245
|
if (httpStatusCode >= 400 || htmlContent.includes('Oops!, something went wrong')) {
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
// Include all response headers for debugging
|
|
247
|
+
let headersInfo = 'none';
|
|
248
|
+
if (authorizeResponse && typeof authorizeResponse === 'object') {
|
|
249
|
+
const respObj = authorizeResponse;
|
|
250
|
+
const respHeaders = respObj.headers;
|
|
251
|
+
if (respHeaders) {
|
|
252
|
+
headersInfo = Object.keys(respHeaders).join(', ');
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
const preview = htmlContent.substring(0, 600);
|
|
256
|
+
throw new Error(`CARIAD BFF Error (HTTP ${httpStatusCode}). Response headers: [${headersInfo}]. URL: ${authorizeUrl}?${authorizeParams.toString()}. Body preview: ${preview}`);
|
|
248
257
|
}
|
|
249
258
|
// Follow redirects manually to capture the state parameter
|
|
250
259
|
let maxInitialRedirects = 5;
|
package/package.json
CHANGED