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
- const preview = htmlContent.substring(0, 1000);
247
- throw new Error(`CARIAD BFF Error (HTTP ${httpStatusCode}): ${preview}`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-jygse-vw-weconnect",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "n8n community node for VW We Connect - Control your Volkswagen T6.1 and other VW vehicles",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",