Exporting PDF via RESTMessageV2 API with a basic authentication fails with HTTP 401 error.
Below are steps to be followed:
Method failed: (/xxxxxx.do) with code: 401 - Invalid username/password combo
This HTTP status 401 may have been caused by below reasons:
To overcome this error ; the value in the username field in the "sys_auth_profile_basic" which is associated with the REST message Basic Auth Profile should also be checked if the username is existing on the sys_user table.
If not , please add the username to sys_user table with providing "web_service_admin" role to that username. Below is the documentation to follow :