Occasionally I get the 'red error' dialog for calls to my web API via the PowerApps Custom Connector. They are usually HTTP code 500s. I suspect it's a network hiccup or similar, as every time I test the call outside of my App it works fine. How can I 'handle' these errors in PowerApps so that they don't display the red error / failure? And instead simply, I don't know, substitute a default value or something? Or present a friendly error, or trap the error altogether and make it silent?
Solved! Go to Solution.
Unfortunately, there's no way to handle this in PowerApps. I'd suggest voting for this idea of 'Try-Catch' functionality which would be of great help in situations like this.
Hi @JamesM,
Could you please share more details about the error message on your side?
Which authentication type do you use within your custom connector?
Further, could you please share more details about the OpenAPI definition file of your custom connector?
Based on the HTTP error code (500) that you provided, I think there is something wrong when you make a call/request to your Web server using your custom connector in PowerApps.
Please check if you have typed/defined proper URL path or Request type (e.g. Get, Post, etc.) within your custom connector.
In addition, please also check if you have provided proper Authorization Info within your custom connector. e.g. If you use API Key authentication type, please check if you have provided proper API Key value.
In addition, within PowerApps, there is no way to handle a HTTP error friendly within PowerApps custom connector currently.
Best regards,
Kris
Hi @JamesM are you still experiencing this error? If so, did the above response help at all?
@Anonymous
Unfortunately, there's no way to handle this in PowerApps. I'd suggest voting for this idea of 'Try-Catch' functionality which would be of great help in situations like this.
User | Count |
---|---|
196 | |
125 | |
86 | |
49 | |
42 |
User | Count |
---|---|
284 | |
159 | |
138 | |
75 | |
72 |