Serverless app invokeTemplate always returns 403: URL not allowed

I created a v2.3 serverless app that calls an external site and it works perfectly when run locally (fdk run) but when installed, it logs:

{ status: 403, headers: {}, response: ‘URL not allowed’, errorSource: ‘APP’, attempts: 1 }

The target URL is open to the internet (I have tried both public sites like webhook.site and my own domain URLs)

Any help appreciated.

Hi @Mark_Dedlow

Can you check your request URL and try the hardcoded URL in the request?

I do have it hardcoded:

{
“postTimeSheet”: {
“schema”: {
“protocol”: “https”,
“method”: “POST”,
“host”: “webhook.site”,
“path”: “/5c1b5b05-aca6-4270-883e-bb16a9f5e8b3”,
“headers”: {
“Content-Type”: “application/json”
}
}
}
}

Hi @Mark_Dedlow

Can you try this

 "postTimeSheet": {
    "schema": {
      "method": "POST",
      "host": "webhook.site",
      "path": "/5c1b5b05-aca6-4270-883e-bb16a9f5e8b3",
      "headers": {
        "Content-Type": "application/json"
      }
    }
  }

That’s the same but without protocol. That has same error.

Hey @Mark_Dedlow

Can you try the same request in Postman? so that we can find the issue

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.