Forum Discussion

bhar2014's avatar
bhar2014
Visitor
2 years ago

how to fix 404 error when i run my test case in ready api

When I was running my test case is failing at Test step Generate Access token . It is throwing failed assertion : HTTP status code error 

This is my request . 

{
"grant_type": "client_credentials",

}

POST https://bospart.qa.uw2.gdotawsnp.com/baas/v1/authentication HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Authorization:
X-GD-RequestId: 75777555-9406-47b0-ba78-4003016a15c1
Content-Length: 41
Host: bospart.qa.uw2.gdotawsnp.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)

{
"grant_type": "client_credentials",
}

Response :

POST https://bospart.qa.uw2.gdotawsnp.com/baas/v1/authentication HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Authorization:
X-GD-RequestId: 75777555-9406-47b0-ba78-4003016a15c1
Content-Length: 41

Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)

{
"grant_type": "client_credentials",
}

 

Response :HTTP/1.1 400 Bad Request
Date: Tue, 09 Aug 2022 15:18:56 GMT
Content-Length: 0
Connection: keep-alive
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff 

No RepliesBe the first to reply