You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to send JSON content to loadtest with my API. While the JSON content itself works (I have other tests running against this JSON), when passed to loadtest, it does not. I keep getting parse errors on the input. Here is a reprex:
Super simple API saved to "multiply_api.R"
library(plumber)
#* Multiply a number by 10
#* @param num:object The number to be multiplied
#* @post /multiply
function(req) {
input <- jsonlite::fromJSON(req$postBody)
input$num * 10
}
I am trying to send JSON content to loadtest with my API. While the JSON content itself works (I have other tests running against this JSON), when passed to
loadtest
, it does not. I keep getting parse errors on the input. Here is a reprex:Super simple API saved to "multiply_api.R"
You can run this API with
Here is the loadtest:
And here are the errors I see:
The text was updated successfully, but these errors were encountered: