Skip to content

mockoon-cli does not return response body #1107

Closed Answered by nleeuskadi
nleeuskadi asked this question in Help
Discussion options

You must be logged in to vote

Hi Guillaume,

I sent to you a gzip file because I cannot attach a json file directly in the github HMI.
Did you receive the gzipo file and did you managed to gunzip it?

What i did is :

  1. launch the mockoon-cli docker image with the provided json file:
docker run -d --mount type=bind,source=/my-path/my-mock-api.json,target=/data,readonly -p 3333:3333 mockoon/cli:latest -d data -p 3333
  1. execute the following curl command:
curl http://localhost:3333/workorder\(\'7006873\'\)

The expected response should be

{
  "response": "welcome!!"
}

But it returns nothing.

  1. I requested all the headers for the same route
curl -I http://localhost:3333/workorder\(\'7006873\'\)

The expected response shou…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@nleeuskadi
Comment options

@255kb
Comment options

Comment options

You must be logged in to vote
2 replies
@nleeuskadi
Comment options

@255kb
Comment options

Comment options

You must be logged in to vote
4 replies
@nleeuskadi
Comment options

@255kb
Comment options

@nleeuskadi
Comment options

@255kb
Comment options

Answer selected by nleeuskadi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants