As in every live system there are many things that can go wrong. Although we put a lot of efforts into ensuring the system is responsive, reliable, with descriptive error messages, there are still cases when we return a generic error message "Internal Error". In these exception cases we look in logs and try to understand what went wrong and how to fix it. “Internal error” usually means “There is a case in application that doesn’t comply with the assumptions we’ve made nor is appropriate to return a descriptive error message and you’ll have to rely on us to fix this for you.” In the case I am going to describe this is not the case – there is a way you can fix things.
In our error logs we found an exception related to desterilizing request header so we’ve investigated possible reasons and found that a SOAP header in the request with duplicate elements could return the “Internal Error” response.
This is how the wrong SOAP request looks:
Note that DeveloperToken in SOAP Header is duplicated. In order to return a valid non-error response, all elements in the header should have only one instance.
After removing it, everything is fine and the "Internal Error" message is gone.
Thus we’ve just added one more step in the list when you receive "Internal Error" response:
- Capture the SOAP messages (request and response)
- Analyze them if they are according MSDN Documentation and check for syntax errors
- Check for duplicates in request message header.
- If you still see the error, contact our Technical Support team with the error messages. With the messages, we’re able to more quickly troubleshoot your issue.
Hope this helps,