'Running my postman collections in Azure devOps build pipelines but fails with "401" and a "404" status code

I have exported my postman collections plus environment and global variables and pushed to them to Azure repos, then trying to run API test through a build pipeline, but fails with status code 401- not authorized and a 404. My test runs fine in Postman but fails in Azure devops build pipeline. I surpose that the "auth token" is packaged in the global variable that i exported as well. What could be the problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source