It looks like you're not waiting for the async call (removeCustomViewAsync) to complete.
As soon as removeCustomViewAsync start, 500 Internal Server Error is generated.
Also When I called only it, 500 Error was generated.
Any help on this appreciated.
1 of 1 people found this helpful
So to avoid the above error I have explicitly given a call to the getCustomViewAsync method first then give a call to removeCustomViewAsync method. With this you will not get the error.