System.NullReferenceException while calling core_v2_http.Delete()

Hello,

When we create a comment for an Idea in our community, it triggers an automation to create the same comment in an external application. Similarly when a comment is deleted in community it will trigger an automation to delete the same in the external application.

We are using the core_v2_http.Delete() script API to delete the comment in external application. It is deleting the comment in external application, however we are seeing below exception in the community.

System.NullReferenceException: Object reference not set to an instance of an object.
at Telligent.Evolution.Extensibility.Api.Version1.Http.<MakeRequest>d__17.MoveNext()

Any help will be appreciated.

Regards,
Anshuman