n8n-nodes-msteams-botframework 1.2.9 → 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.
@@ -185,7 +185,16 @@ class MsTeamsBotFrameworkTrigger {
185
185
  };
186
186
  }
187
187
  async webhook() {
188
- 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
+ }
189
198
  const req = this.getRequestObject();
190
199
  const events = this.getNodeParameter('events', []);
191
200
  const options = this.getNodeParameter('options', {});
@@ -311,7 +320,7 @@ class MsTeamsBotFrameworkTrigger {
311
320
  };
312
321
  }
313
322
  catch (error) {
314
- 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}`, {
315
324
  description: error.message,
316
325
  });
317
326
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-msteams-botframework",
3
- "version": "1.2.9",
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",