com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'swagger': was expecting ('true', 'false' or 'null') at [Source: swagger: "2.0"info: version: 1.0.0 title: Swagger Petstore license: name: MIThost: petstore.swagger.wordnik.combasePath: /v1schemes: - httpconsumes: - application/jsonproduces: - application/jsonpaths: /pets: get: summary: List all pets operationId: listPets tags: - pets parameters: - name: limit in: query description: How many items to return at one time (max 100) required: false type: integer format: int32 responses: 200: description: An paged array of pets headers: x-next: type: string description: A link to the next page of responses schema: $ref: Pets default: description: unexpected error schema: $ref: Error post: summary: Create a pet operationId: createPets tags: - pets responses: 201: description: Null response default: description: unexpected error schema: $ref: Error /pets/{petId}: get: summary: Info for a specific pet operationId: showPetById tags: - pets parameters: - name: petId in: path description: The id of the pet to retrieve type: string responses: 200: description: Expected response to a valid request schema: $ref: Pets default: description: unexpected error schema: $ref: Errordefinitions: Pet: required: - id - name properties: id: type: integer format: int64 name: type: string tag: type: string Pets: type: array items: $ref: Pet Error: required: - code - message properties: code: type: integer format: int32 message: type: string; line: 1, column: 8]

GitHub | bertrand-quenin | 2 years ago
  1. 0

    Swagger parser fail to parse the v2.0 example specification

    GitHub | 2 years ago | bertrand-quenin
    com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'swagger': was expecting ('true', 'false' or 'null') at [Source: swagger: "2.0"info: version: 1.0.0 title: Swagger Petstore license: name: MIThost: petstore.swagger.wordnik.combasePath: /v1schemes: - httpconsumes: - application/jsonproduces: - application/jsonpaths: /pets: get: summary: List all pets operationId: listPets tags: - pets parameters: - name: limit in: query description: How many items to return at one time (max 100) required: false type: integer format: int32 responses: 200: description: An paged array of pets headers: x-next: type: string description: A link to the next page of responses schema: $ref: Pets default: description: unexpected error schema: $ref: Error post: summary: Create a pet operationId: createPets tags: - pets responses: 201: description: Null response default: description: unexpected error schema: $ref: Error /pets/{petId}: get: summary: Info for a specific pet operationId: showPetById tags: - pets parameters: - name: petId in: path description: The id of the pet to retrieve type: string responses: 200: description: Expected response to a valid request schema: $ref: Pets default: description: unexpected error schema: $ref: Errordefinitions: Pet: required: - id - name properties: id: type: integer format: int64 name: type: string tag: type: string Pets: type: array items: $ref: Pet Error: required: - code - message properties: code: type: integer format: int32 message: type: string; line: 1, column: 8]
  2. 0

    GATE / Mailing Lists

    sourceforge.net | 11 months ago
    com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input: expected close marker for OBJECT (from [Source: java.io.StringReader@...; line: 1, column: 0]) at [Source: java.io.StringReader@...; line: 1, column: 3]
  3. 0

    [ProcessBuffer] Unable to process event MessageEvent{raw=null, message=null}, sequence 6104949 java.lang.IllegalStateException: Failed to decompress the GELF message payload

    GitHub | 2 years ago | andreaconsadori
    com.fasterxml.jackson.core.JsonParseException: Unexpected character ('�' (code 65533 / 0xfffd)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: �D��I�ë���o�#B��@-��^E64L��%�V?�V��dx��T�r�0~��8c˲c�&��S�d�#�M��� �l( �ÙW��X9?m9��C<�~�o�]} 0V�� �D�����F�ؠ �$y2͢(JDg�p9�v��=Н��b������˪�+ B���˶'��D�������bJ�%»`ojX��s�R�A�[~P���6���=C8�▒▒�y�7Հ��UC���"E��0�<E!�Yz1 ���"Jx>O��w���ki�2�H��z_c��=�j�Ū�>� J��4�S~�^����l���րl�9�So��J����N���s�`��7c�l��b}6���>�-�N~%@c�f�ڂ��b�0Ӑ�a�&<M�"�äȲi�s�ˋ�����$L�$�p�� ����vR�#�r�����C��q�/�%�vʷ��AHβR�@ Ь�Hţ8 #�ŢL�R��Y�W���Iw���ܪ��젬�-z�o�:2_�������Z��[4�ʝ�|���k�c�~0�pȚs�q�1▒▒�T��h��d{��Pn����o��A�orXV��)�; line: 1, column: 2]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GELF over TCP error (0.20.0-rc.2)

    GitHub | 3 years ago | karlvlam
    com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 3)): only regular white space (\r, \n, \t) is allowed between tokens at [Source: java.io.StringReader@40dfb9a8; line: 1, column: 2]
  6. 0

    Plugin Crashes App on Android If Config-file Url Is Wrong

    GitHub | 11 months ago | johnmiroki
    com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <link href="css/style.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="css/timeshaft/default.css" /> <link rel="stylesheet" type="text/css" href="css/timeshaft/component.css" /> <link href="lib/ionic/css/ionic.css" rel="stylesheet"> <link href="css/angular-chart.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="css/pingan.css" /> <script src="lib/modernizr.custom.js"></script> <script data-main="js/main" src="lib/require.js"></script> <!-- <script src="cordova.js"></script> --> <script type="text/javascript"> // 调试代码 window.onerror = function(msg, url, line) { var idx = url.lastIndexOf("/"); alert("ERROR in " + url + " (line #" + line + "): " + msg); return false; }; </script> <div style="display:none"> <script src="http://s11.cnzz.com/z_stat.php?id=1257060790&web_id=1257060790" language="JavaScript"></script> </div> </head> <body style="max-width:750px"> <ion-nav-view></ion-nav-view> </body> </html> ; line: 1, column: 2]

  1. kid 1 times, last 4 weeks ago
  2. tyson925 2 times, last 4 months ago
  3. regisso 1 times, last 5 months ago
  4. pradhul 3 times, last 9 months ago
37 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.fasterxml.jackson.core.JsonParseException

    Unrecognized token 'swagger': was expecting ('true', 'false' or 'null') at [Source: swagger: "2.0"info: version: 1.0.0 title: Swagger Petstore license: name: MIThost: petstore.swagger.wordnik.combasePath: /v1schemes: - httpconsumes: - application/jsonproduces: - application/jsonpaths: /pets: get: summary: List all pets operationId: listPets tags: - pets parameters: - name: limit in: query description: How many items to return at one time (max 100) required: false type: integer format: int32 responses: 200: description: An paged array of pets headers: x-next: type: string description: A link to the next page of responses schema: $ref: Pets default: description: unexpected error schema: $ref: Error post: summary: Create a pet operationId: createPets tags: - pets responses: 201: description: Null response default: description: unexpected error schema: $ref: Error /pets/{petId}: get: summary: Info for a specific pet operationId: showPetById tags: - pets parameters: - name: petId in: path description: The id of the pet to retrieve type: string responses: 200: description: Expected response to a valid request schema: $ref: Pets default: description: unexpected error schema: $ref: Errordefinitions: Pet: required: - id - name properties: id: type: integer format: int64 name: type: string tag: type: string Pets: type: array items: $ref: Pet Error: required: - code - message properties: code: type: integer format: int32 message: type: string; line: 1, column: 8]

    at com.fasterxml.jackson.core.JsonParser._constructError()
  2. Jackson-core
    ReaderBasedJsonParser.nextToken
    1. com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1419)
    2. com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:508)
    3. com.fasterxml.jackson.core.json.ReaderBasedJsonParser._reportInvalidToken(ReaderBasedJsonParser.java:2300)
    4. com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1459)
    5. com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:683)
    5 frames
  3. Jackson
    ObjectMapper.readTree
    1. com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3090)
    2. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3036)
    3. com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:1818)
    3 frames
  4. io.swagger.parser
    SwaggerParser.read
    1. io.swagger.parser.SwaggerCompatConverter.readResourceListing(SwaggerCompatConverter.java:122)
    2. io.swagger.parser.SwaggerCompatConverter.read(SwaggerCompatConverter.java:58)
    3. io.swagger.parser.SwaggerParser.read(SwaggerParser.java:34)
    3 frames
  5. com.wordnik.swagger
    Codegen.main
    1. com.wordnik.swagger.codegen.Codegen.main(Codegen.java:87)
    1 frame