friendsofgo / killgrave

Simple way to generate mock servers written in Go
https://friendsofgo.github.io/killgrave/
MIT License
523 stars 100 forks source link

For any JSON schema I get 404 error #94

Closed NavaneethNKMN closed 1 year ago

NavaneethNKMN commented 3 years ago

Even the schema that was provided in documentation also gives me the below error in terminal:

parse "file://D:\killgrave-master\killgrave-master/internal\server\http\test\testdata\imposters/schemas/create_gopher_request.json": invalid port ":\killgrave-master\killgrave-master" after host: error validating the json schema

In postman, I get 404-Not found. I have attached files of imposter and schema with txt extension. create_gopher.imp.txt create_gopher_request.txt

Please help me out if I am missing something

joanlopez commented 3 years ago

Hi @NavaneethNKMN,

First of all, thanks for reaching us! I'll be happy to try to help you. Let me ask you some questions to get additional context:

Based on the context I have, some potential issues that come to my mind are:

Thanks!! 🙏🏻

NavaneethNKMN commented 3 years ago

Thanks for the reply.

Killgrave version - Master
How are you running it (Docker, Homebrew, Souce code...) - Source Code
How is your imposter's directory organized (where do you have each file)- I have attached the image of the folder structure
>imposters
   >responses
   >schemas
When are you getting those errors (initialization, request-time...) - During request time.
aperezg commented 3 years ago

Hello sorry for the very delay on the response, the imposters that we have in the repository are only for the unit testing purpose, if you want to use killgrave, you we will need create your own or even if you want copy and paste that and put in the proper paths

joanlopez commented 1 year ago

I proceed to close it due to inactivity. Please, feel free to open another issue if you're still struggling with imposters containing a JSON Schema.