Debugging 500 Error on Salesforce Trigger?

our company name is Welcome

everything else in my salesforce flows works correctly

only the instant triggers don’t

Oh ok

Can you substitute the code in async run() to:

  async run({steps, $}) {
    try {
      const client = this._getSalesforceClient();
      const webhookOpts = {
        endpointUrl: "https://www.unexistent-endpoint-10845209472.com",
        sObjectType: "User",
        event: "new",
        secretToken: "secret",
      };
      return client.createWebhook(webhookOpts);
    } catch (error) {
      console.log(JSON.stringify(error, null, 2))
      return error
    }
  },

No changes in the output?

doesnt seem like it

Ah, forgot an await

  async run({steps, $}) {
    try {
      const client = this._getSalesforceClient();
      const webhookOpts = {
        endpointUrl: "https://www.unexistent-endpoint-10845209472.com",
        sObjectType: "User",
        event: "new",
        secretToken: "secret",
      };
      return await client.createWebhook(webhookOpts);
    } catch (error) {
      console.log(JSON.stringify(error, null, 2))
      return error
    }
  },

Can you please click on Copy Value and paste it all here?

hmm too long to paste

Try here: https://pastebin.com/

Oh crap sorry, just noticed your API_KEY showed up. Please revoke it in Salesforce and create a new one

You’ll have to reauth in your workflows

Ah ok thanks

just disable the pipedream app and re-auth in pipedream right?

Dang, the error is being handled in the salesforce-webhook lib, and I can’t access the info I need

Yeah I think that’ll do