n8n-nodes-github-copilot 3.38.16 → 3.38.17

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.38.16",
3
+ "version": "3.38.17",
4
4
  "description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude, Gemini and more using your Copilot subscription",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
@@ -90,6 +90,11 @@ async function makeGitHubCopilotRequest(context, endpoint, body, hasMedia = fals
90
90
  }
91
91
  if (!response.ok) {
92
92
  const errorText = await response.text();
93
+ if (response.status === 400) {
94
+ console.log(`🚫 400 Bad Request detected - not retrying`);
95
+ const enhancedError = `GitHub Copilot API error: ${response.status} ${response.statusText}. ${errorText}`;
96
+ throw new Error(enhancedError);
97
+ }
93
98
  const tokenPrefix = token.substring(0, 4);
94
99
  const tokenSuffix = token.substring(token.length - 5);
95
100
  const tokenInfo = `${tokenPrefix}...${tokenSuffix}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.38.16",
3
+ "version": "3.38.17",
4
4
  "description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude, Gemini and more using your Copilot subscription",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",