n8n-nodes-github-copilot 1.1.6 → 1.1.7
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.
|
@@ -325,17 +325,23 @@ class GitHubCopilot {
|
|
|
325
325
|
stdout = err.stdout || '';
|
|
326
326
|
}
|
|
327
327
|
if (stderr) {
|
|
328
|
+
let debugTokenInfo = '';
|
|
329
|
+
if (authType !== 'manual') {
|
|
330
|
+
debugTokenInfo = authType === 'local'
|
|
331
|
+
? ' [Local CLI - no token passed]'
|
|
332
|
+
: ` [Token used: ${accessToken || 'none'}]`;
|
|
333
|
+
}
|
|
328
334
|
if (stderr.includes('internal server error') || stderr.includes('code: 400')) {
|
|
329
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub Copilot service is temporarily unavailable (HTTP 400). This is a GitHub server issue. Please try again in a few moments
|
|
335
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub Copilot service is temporarily unavailable (HTTP 400). This is a GitHub server issue. Please try again in a few moments.${debugTokenInfo} Error: ${stderr}`);
|
|
330
336
|
}
|
|
331
337
|
else if (stderr.includes('401') || stderr.includes('Unauthorized') || stderr.includes('Bad credentials')) {
|
|
332
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub authentication failed. Please check your token has Copilot permissions
|
|
338
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub authentication failed. Please check your token has Copilot permissions.${debugTokenInfo} Error: ${stderr}`);
|
|
333
339
|
}
|
|
334
340
|
else if (stderr.includes('403') || stderr.includes('Forbidden')) {
|
|
335
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub Copilot access denied. Please ensure your account has Copilot subscription
|
|
341
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub Copilot access denied. Please ensure your account has Copilot subscription.${debugTokenInfo} Error: ${stderr}`);
|
|
336
342
|
}
|
|
337
343
|
else if (!stdout) {
|
|
338
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub Copilot CLI error
|
|
344
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub Copilot CLI error:${debugTokenInfo} ${stderr}`);
|
|
339
345
|
}
|
|
340
346
|
}
|
|
341
347
|
const filterOutput = this.getNodeParameter('filterOutput', i, true);
|
package/package.json
CHANGED