The HTTP 401 – Unauthorised response generally occurs when there is a problem with the credentials used or the completeness of the HTTP POST.
Please check the HTTP POST sent to the SAP Mobile Services Hub, and ensure that the user details are correct.
Tip:You may want to capture a TCP dump (a .pcap file) to ensure that you have full visibility of the POST being sent. If any of the user details are missing, check your application to find out why the full set of details is not present.
Ensure the application is using a POST request, and not a GET request.
Check and confirm that there were no changes applied to your HTTP application or servers, which may have contributed to the HTTP 401 response.
If the above checks do not show any cause for the HTTP 401 response, please raise a service request to the SAP Mobile Services Service Desk, ensuring you provide the following details:
SAP Mobile Services Hub account details (for example, username/password, MT URL)
Date/time when the issue started
Any supportive documentation, for example, TCPDump, log file, screen shots detailing the response and so on.
From our Apache_access logs we can see the username ‘customerxxx’ is present in the first two examples which are shown as underlined in the example below, indicating a successful POST.
The HTTP 401 shows a ‘-‘ in place of the username, and therefore indicates that it was not present in the HTTP POST, therefore returning the HTTP 401 – Unauthorised response.