n8n-nodes-msteams-botframework 1.2.8 → 1.2.10

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.
@@ -41,8 +41,7 @@ class MsTeamsBotFrameworkTrigger {
41
41
  httpMethod: 'POST',
42
42
  responseMode: '={{$parameter["respondWhen"]}}',
43
43
  responseData: '={{$parameter["responseData"]}}',
44
- path: '',
45
- isFullPath: true,
44
+ path: 'webhook',
46
45
  },
47
46
  ],
48
47
  properties: [
@@ -186,7 +185,16 @@ class MsTeamsBotFrameworkTrigger {
186
185
  };
187
186
  }
188
187
  async webhook() {
189
- const credentials = await this.getCredentials('msTeamsBotFrameworkApi');
188
+ const node = this.getNode();
189
+ let credentials;
190
+ try {
191
+ credentials = await this.getCredentials('msTeamsBotFrameworkApi');
192
+ }
193
+ catch (error) {
194
+ throw new n8n_workflow_1.NodeOperationError(node, 'Failed to get credentials', {
195
+ description: error.message,
196
+ });
197
+ }
190
198
  const req = this.getRequestObject();
191
199
  const events = this.getNodeParameter('events', []);
192
200
  const options = this.getNodeParameter('options', {});
@@ -312,7 +320,7 @@ class MsTeamsBotFrameworkTrigger {
312
320
  };
313
321
  }
314
322
  catch (error) {
315
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to process Teams webhook: ${error.message}`, {
323
+ throw new n8n_workflow_1.NodeOperationError(node, `Failed to process Teams webhook: ${error.message}`, {
316
324
  description: error.message,
317
325
  });
318
326
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-msteams-botframework",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "description": "n8n node for MS Teams Azure Bot Framework",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",