Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting 203 with error when using vsts rest api

When I'm trying to create a new work item in VSTS with the POST request:

https://galilinetsky.visualstudio.com/Automatiom/_apis/wit/workitems/$Test%20Case?api-version=5.0-preview.2

I get the next response :

Microsoft Internet Explorer's Enhanced Security Configuration is currently enabled on your environment. This enhanced level of security prevents our web integration experiences from displaying or performing correctly. To continue with your operation please disable this configuration or contact your administrator.

What am I doing wrong?

like image 392
Gal I. Avatar asked Aug 19 '18 01:08

Gal I.


1 Answers

The solution is to be found in a similar question: Why I get Internet Explorer enhanced security error message in Chrome if I call VSO API from Angularjs SPA?

Andy writes

the PAT has to be prefix[ed] by ":" before you base 64 encode it"

So the solution is:

  1. Create a Personal Access Token
  2. Add a colon (':') before it
  3. Encode the new PAT (with the preceding colon) using Base 64

Et voila ! That PAT will no longer give you a 203 error.

like image 170
numeratus Avatar answered Oct 18 '22 22:10

numeratus