We are able to run the publish jobs from TDM portal successfully. When we are trying to run the same TDM Publish with 'ReadyAPI' we are getting errors most of the time. We are seeing this issue after upgrading TDM to 4.9 version.
Http Exception in TDM Publish, Error: 401 null
Looking into the error, it indicates that the Token has expired, and is no longer valid. This is unusual behavior, since tokens by default are vaildfor24 hours after they are generated.
Release : 4.9
Component : CA Test Data Manager - TDM Web Portal
Engineering had a deep dive look at this problem, and the only way this can happen is if there are two TDM Portals are sharing the same GTREP repository.
The customer confirmed their offshore team stood up a second instance of TDM Portal, which uses the same GTREP repository database as this instance, because of network restrictions keeping them from accessing the first Portal installation. This is what's causing the inconsistencies with the API.
Only one Portal can connect to the GTREP Repository. Each Portal instance should have its own repository database. To resolve this issue:
See the following information for copying data from one repository to another repository: https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/test-data-management/4-9/administrating/repository-administration/copy-remote-repository.html.