I have a simple REST API that exposes an operation to get an account as follows
I have created a virtual API based on this API. While I can exercise actions with non-parameterized paths when I invoke the above action I receive a 500 response.
Here is the request:
GET http://localhost:8088/accounts/1234 HTTP/1.1Accept-Encoding: gzip,deflateAuthorization: *****Content-Length: 0Host: localhost:8088Connection: Keep-AliveUser-Agent: Apache-HttpClient/4.5.2 (Java/15)
HTTP/1.1 500 Server ErrorDate: Tue, 05 Jan 2021 12:16:33 GMTTransfer-Encoding: chunked
I can see the following error in the error log:
Is this a known issue with REST APIS?
Go to Solution.
I'm assuming this is more of a mock API issue rather than a SoapUI issue.
I'd look at the mock implementation that validates an id because of the thrown exception....
I haven't used SoapUI/ReadyAPI mocking functionality, so I'm not best placed to comment. Some code snippets/screenshots of the validation may help someone else help you.
View solution in original post
Thanks for your question!
@PrathapR @richie @ChrisAdams any thought on this one?🙂
Thank you for the idea ChrisAdams !
@bflynnbyx did you solve this one? Please let us know!