Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward Slash "/" in the end of the URL gets auto removed while hitting. #1839

Closed
Gopal9797 opened this issue Nov 16, 2021 · 2 comments
Closed
Labels

Comments

@Gopal9797
Copy link

Please note the path below is having "/" at the end.

    Scenario: Get Contract Recon - REST
       Given path '/api/contract/v1/cmsreconservice/'
       And header Authorization = restClient.Authorization
       When method get
       Then status 200

Below is the console log where we can see URL is not having the "/" at the end. (i.e) It gets auto removed while hitting.

13:02:24.611 [Test worker] DEBUG com.intuit.karate - request:
   1 > GET https://contract-recon-service-qa.u1.app.cloud.comcast.net/api/contract/v1/cmsreconservice

Actually, this API seems to throw 404 if we hit without "/". That is why, it is an issue for me.
Tried concatenating the URL like '/api/contract/v1/cmsreconservice' + '/'.
But somehow it is still hitting without the "/"

image

@ptrthomas
Copy link
Member

@Gopal9797 please follow this process to reopen: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue

that said, most likely can be solved once you read this carefully (especially the end): #1561

@ptrthomas
Copy link
Member

please see #1863 for a solution in future versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants