Dear community,
I have added C# code to a custom connector. The code transforms the request URI by replacing some query parameters before sending the request to the back-end API. The connector works fine, and the URI is transformed as expected.
However, after a while, the custom C# code does not get executed anymore. The request is sent directly to the back-end API, effectively bypassing the C# code, even though the code is activated on the custom connector and the relevant actions are selected. To overcome this problem, it is necessary to open the custom connector and save it again as it is. However, this work-around is only temporary, as the problem emerges again after a while.
I am not able to tell exactly how long the C# code gets executed before being bypassed. From several tests over the past days, I found that the C# code gets correctly executed for roughly 24 hours after the connector is saved.
To showcase the issue, I have created a simple custom connector that calls a weather API and uses C# code to transform a query parameter. Please find the details below.
Has anyone experienced this issue? Does anybody know what the cause of the problem might be?
I would be grateful for your feedback!
Custom Connector Definition:
Swagger definition of the custom connector
Custom Code:
Custom code