cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger import - groovy.json.JsonException:

New Contributor

Swagger import - groovy.json.JsonException:

Hi, 

 

I am doing a Swagger import and getting the following error: 

 

groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object The current character read is '' with an int value of 60

 

The Swagger URL comes up fine in a browser http://localhost:8081/swagger-ui.html but I get the error (see attached screenshots). 

 

I appreciate any help. I've looked in the board and haven't found any discussion of this.

 

Thanks,
Gabor

4 REPLIES 4
Contributor

Re: Swagger import - groovy.json.JsonException:

Hi

 

I've had something very similar, reported to the helpdesk and the issue has been replicated, waiting on a fix, I'll update this post when I hear back from SB

Contributor

Re: Swagger import - groovy.json.JsonException:

Hiya

 

ok so it turns out that my JSON file needed to be saved in UTF-8 encoding as opposed to the UTF-8-BOM it was originally in, so worth remembering that one, imported without any apparent errors

 

still have issues with using the html variant but one step closer

 

regards

Mike

Regular Visitor

Re: Swagger import - groovy.json.JsonException:

Someone find an official solution for this bug?

 

Regards

 

Eric

Contributor

Re: Swagger import - groovy.json.JsonException:

from SB regarding the html file

"That is the Swagger documentation and not the Swagger spec file, the Swagger spec file is what we support for importing into Ready API.  The Swagger specification only comes in two formats to use, JSON or YAML.  We support both JSON and YAML."

New Here?
Join us and watch the welcome video:
Top Kudoed Authors