I’m new to Freshdesk and had to develop a connection between a contact form and Freshdesk using the API. I managed to create a new ticket within Freshdesk, but on each request I get a duplicated ticket in the portal. As far as I can see the request is only triggered once. This is my input for creating a new ticket:
This can happen if the first HTTP request is receiving an error and the request is getting re-tried because maxAttempts is set to 2 .
Something else might be triggering the event handler at the same time. This can happen if the same function is exposed as an SMI and some other part of the app (another function) is calling it.
Some other function is triggering the same request.
Could you please check to rule out the scenarios above? Also could you please share the code of the HTTP request (200/201 etc)?
I found the problem. It was a silly mistake in my code. Stupid I didn’t notice it.
The request is beeing executes twice, once in my if-statement and then the second time on the line after my if-statement.