Hello folks,
I've created a custom connector which uses the Power BI REST API via OAuth2 (https://www.mssqltips.com/sqlservertip/5976/refresh-power-bi-dataset-from-azure-data-factory--part-1/). I'm able to test the connector in the UI successfully. The response comes in 1-2 seconds.

But if I create a flow using this connector, it takes about 30 seconds to run and ends with HTTP 403 Forbidden.

I created the connector a week ago and I also used it successfully. Then our Power Platform admin created environments for our projects and the custom connector stopped working in my flow. It doesn't matter which environment I use - it doesn't work in any of them. If I recreate the custom connector and the flow with Logic Apps, it works. It means the problem came with the introduction of environments.
I use the Power Apps Plan 2 license.
Do you have any idea what I should try?