Function trigger-function failed with error-code: 541 Unknown

What is HTTP Error code 541 mean when trying to call an app function? The app function calls an external service. How to troubleshoot this?

Hey Radek,

Could you please check if the external endpoint you try to connect to is in the Dynatrace JavaScript Runtime allow-list?

Allow outbound connections | Dynatrace Developer

Nevertheless, I agree that we need to improve the error message here but this is already on the way AFAIK.

Cheers,
Dirk

OK. Good hint! Indeed we’re using a custom endpoint via the AWS API gateway. For the sake we’ve disabled the limitation to outbound connections to endpoints in the allow-list like that:

This helped. We’ll turn it on and add our endpoint to the list. Thanks Dirk!