Hello,
I have been working on a project to connect M365 Copilot with a REST API that I made and have running on a GCP Cloud Run Instance. To set up the connection, I have been using a custom connector in power automate. Just as a quick overview: I have a https connection to my domain that has a valid cert, I have defined 2 GET requests and 1 POST Request, I am using a static JWT for authentication by setting the authentication type to "No Authentication" and then using the Set HTTP Header template policy to inject the JWT token. All of this works, and I have been able to test the connector and get successful responses, and I have been able to use the connection as a tool in copilot studio, and use them in a chat session.
The issue I am facing is that the custom connector frequently wipes all of the data from itself. I will click in to it to make edits, and the swagger has been reset to its default state. I have my swagger saved in a notepad since this has happened so frequently, so I will paste that back in and click "update connector", and then often times the swagger will reset immediately with no error message explaining if there is an issue with the swagger. Based on the connector working as intended when it successfully saves, I have come to believe it is not an issue with my swagger.
I was hoping that anyone might know why this is happening, since there isn't really any information being provided by power automate, and what steps I can take to stop this from happening.
Thanks!