401 Error After upgrading to Katalon 7

Hey Everyone,

I’m in the process of upgrading my Katalon from 6.2 to 7.2 and have been running into an issue when trying to run my API calls.

In 6.2 I am not receiving any error:

But when i run the same call in 7.2 i am getting an authorization error.

Is there some sort of setting i am missing when running this call in 7.2?

Any help would be appreciated.

Thanks!

Hi @TDube,
Please send the HAR files generated in both versions

Here is my HAR file for the failed test in 7.2. There is no HAR file for the passing 6.2 test case

{
  "log" : {
    "version" : "1.2",
    "pages" : [ ],
    "entries" : [ {
      "startedDateTime" : "2020-01-27T12:10:25.608Z",
      "request" : {
        "method" : "GET",
        "url" : "http://dvreportingdashboardap:28999/api/Account/v1.0/11-30-2019",
        "httpVersion" : "",
        "cookies" : [ ],
        "headers" : [ ],
        "queryString" : [ ],
        "headersSize" : 0,
        "bodySize" : 0,
        "comment" : ""
      },
      "response" : {
        "status" : 401,
        "statusText" : "",
        "httpVersion" : "",
        "cookies" : [ ],
        "headers" : [ {
          "name" : "Transfer-Encoding",
          "value" : "chunked"
        }, {
          "name" : "Server",
          "value" : "Microsoft-IIS/10.0"
        }, {
          "name" : "WWW-Authenticate",
          "value" : "Negotiate"
        }, {
          "name" : "WWW-Authenticate",
          "value" : "NTLM"
        }, {
          "name" : "#status#",
          "value" : "HTTP/1.1 401 Unauthorized"
        }, {
          "name" : "Date",
          "value" : "Mon, 27 Jan 2020 12:10:26 GMT"
        }, {
          "name" : "X-Powered-By",
          "value" : "ASP.NET"
        } ],
        "content" : {
          "size" : 0,
          "mimeType" : "",
          "text" : "",
          "comment" : ""
        },
        "redirectURL" : "",
        "headersSize" : 145,
        "bodySize" : -1,
        "comment" : ""
      },
      "cache" : { },
      "timings" : {
        "comment" : "",
        "ssl" : -1,
        "connect" : 1404,
        "dns" : -1,
        "wait" : 0,
        "blocked" : -1,
        "send" : 0,
        "receive" : 0
      },
      "comment" : "",
      "_katalonRequestInformation" : {
        "name" : "0",
        "testObjectId" : "Object Repository/Account List",
        "harId" : "c2856763-7864-4b01-905c-eab1211900f9",
        "reportFolder" : null
      },
      "time" : 1404
    } ],
    "comment" : ""
  }
}

You will probably need to send a HTTP header (for example an Authentication header) within the request. Maybe it wasn’t converted properly

Hi @TDube,
You can get the HAR files by clicking the HAR link at the top right corner of your request object view. This option is available in both versions.

Thanks @huynguyen.

So i looked at both HAR files and found that my 6.2 test is using Persistent-Auth and 7.2 is using WWW-Authenticate.

6.2
“startedDateTime” : “2020-01-30T16:39:13.064Z”,
“request” : {
“method” : “GET”,
“url” : “http://dvreportingdashboardap:28999/api/Account/v1.0/11-30-2019”,
“httpVersion” : “”,
“cookies” : [ ],
“headers” : [ ],
“queryString” : [ ],
“headersSize” : 0,
“bodySize” : 0,
“comment” : “”
},
“response” : {
“status” : 200,
“statusText” : “”,
“httpVersion” : “”,
“cookies” : [ ],
“headers” : [ {
“name” : “Transfer-Encoding”,
“value” : “chunked”
}, {
“name” : null,
“value” : “HTTP/1.1 200 OK”
}, {
“name” : “Server”,
“value” : “Microsoft-IIS/10.0”
}, {
"name" : “Persistent-Auth”,
** “value” : “true”**
},

7.2
“startedDateTime” : “2020-01-30T16:40:50.672Z”,
“request” : {
“method” : “GET”,
“url” : “http://dvreportingdashboardap:28999/api/Account/v1.0/11-30-2019”,
“httpVersion” : “”,
“cookies” : [ ],
“headers” : [ ],
“queryString” : [ ],
“headersSize” : 0,
“bodySize” : 0,
“comment” : “”
},
“response” : {
“status” : 401,
“statusText” : “”,
“httpVersion” : “”,
“cookies” : [ ],
“headers” : [ {
“name” : “Transfer-Encoding”,
“value” : “chunked”
}, {
“name” : “Server”,
“value” : “Microsoft-IIS/10.0”
}, {
"name" : “WWW-Authenticate”,
** “value” : “Negotiate”**
},

Is there a way for me to enable persistent auth in 7.2?

Hi @TDube,
Please send your requests (with both versions) to the following url https://enkajxjva6hd.x.pipedream.net/ (By changing your url variable value to the new url). Your requests will be captured at this endpoint and I can investigate carefully what causes your issue. The HAR files seem to not capture the whole details of the requests.

Hey @huynguyen. I have sent both requests to the quoted link.

Apologies for the delay

Hi @TDube,
Please also send your request file (.rs file)