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
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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

    GitHub comment 4463#270309525

    GitHub | 5 months ago | wing328
    com.fasterxml.jackson.core.JsonParseException: Unexpected character ('�' (code 65533 / 0xfffd)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: ��k��6����8Isw�ܧM�-��6Av7��(�E�jd���������z��(�~%#qF��p8r���d>����������Q�����ȧl��4�#��������iH�O�,ٻ�Mx�x1Z�,�?W]%����p�ń���4^r�a�=I����9��m3��pDQ�`:��(-?�'a����S�tIV�Gy��a����D����O�,���^/i���!�%��JC��ɺ�` o��ňMtIa��E��؈?[q*0��x't,F>�V|dt��A��]���8$���i $�$�y�\�헣;�@F�ԛʼn7��iB�SD�i�q8^�D������%؏�-t�w��4��8�jS6���)�c�Q�i�.`$B�@8�������L��rQ�&@�$��%���QA��O�����X6�}b�,���=��.$i%Wu��DS/c4���Vzq�oD�q���T �e�*���d]�ь�� RP��x6c�/0R�6XR[�Xt���Tˑ���5�3��/c�΂(6~����~~��Bv��v�ο��9 ^�3o*Z��d���$��`J�%i�_1�%�D$M�t�jD�0]�qM��*�I�:N�����Z>����tB��w�E���^�u�ρ�A��M�b��är���-L�N�v�CP�,�����0῅�q�1_P��yE�����'���z�Y�/0��{�?vXj,��Zd��1�;X��s�ك�)���x�I�MK[������N��c���z�_�[�Y�K: ��4�nc��ʖ���d��xG��6�Iݒfh����\0vn&�]vR�!v^O�L�x��.F�5]�I�%;�{Vt�x|���� p�u��H�h�����ƛ�=ީ lW���B�Z�0]�~�{��.1�s�=�x6���57��͍��c��5ϖ�1 ���w��@�T�,�D������!���_Or��c�m|-��L�2���D��@MLC�&���!{� eJ���3����T�2N�b�b^HW���ku��7��|e�CF����݄�zؒ=���c�ڠ�L�����t�����6���\k[�T��BB8�/G3���n�z�k�/`^�fG3qp���G�8���ZW`s{e��i� ����h����r�C$RA��"�ӧ���s��Ή1��$������RQ�@�=��V�\��U���ůq���a���޼N�2eU�_��z�QU���l�G!���nr�{�K��(钸��v<}��;���I�[I��ܩ0F�p��&^D?{���"�����i|O7Q_��?�0���HMm��I��Db����e&]2{W�^T���0$���t�\�~��Դ[W�s|g�6�1��$�)�l�"�aI��n��_�N����E�|�ਇ�T�U�w�i��H/]pI�%4���+U�ߔ�5H�L��D��v����H@���4lFɛ(�Y��IH2�N�D�%w����]g�a�K�aL!�ϠIYz����0�:��Nw���2�B�-�_�-�Me�V���m�\z8Y�ir�ǵ�=u 'i[�Y@�.Ϣ�4��]������G�^��W�Q8=�U`{�O�5 ��c�rM�c���0AY���W�/�j���ĩ�b��ؑ��R}��e����=�$]���vzG��+���ZL*�z�ck=1��v]zJ�e�?�����x��z�*i�b�h�s0��n��'�yL21���fJï�ց�+rPfYן4��<�}�i�9���O�o ����e��4��rտ�fݹ�E_�L�-�V���լz�)Z���AQ�$1�i�9n�?!��j'@��'�-t���랙�k�l��JV[ئ���/.F~��������O�xx�j8��s*�ea�Z��*up��Թ�uG����4rOF�m�X�2H��9�eɍ�yr[�`J�C��\���|��|��|�����T ��y�F�����%�a,+ԙ\kU�N� ��+:f���]�Z"8�U��#�@�7�,�%NY�69Wz�2�����f��(W��/}j�'��Hߗ�?M�ک̽�p}�@eJ�WK(b�÷U��o�{n�98��M���I��5��[,�u{��N�u������[��Y��GYv1�Oz.T+���i@y��$�"K&Э��F�(�Ű�U�,C$`� (�2���t�=Y$�։]v����"�9̰u3lN�Z����-��X��֍w�X��C�ir&J3��"���⢃�)������Y��n��A6���ׅ>d/i^�z��>��MR�}wQ؉�Ytf��X�i-��[��s��B�%�7<������a'cB�����.v|�5�̹cZ-�-�7��qV򽔼���W|ر���Dg�W��+��)f���#�O�������jG�!�x��"N&:�r���y]:�zf�q��^�S������: ���^Wߝuv��G�^�J�gq�ˊ���FӺDn��{�e����[�l����V�8"����Ceg��I��lræ|�e�&�tB�T�+6L<���U `P�M�^�aX��;4�����*��C*؛� q��wŰ�!1s�L�2)6#�?�4K"���9۽���/�`�cH�V$t���ݭ"�+D�n)�� �ߊ0�9N��"�D�.�D���+��H�9���ߒ.'��������l.����R5-l6����i8�w�x3��r�3��L����m�N��.j���%aB��Fs�Zs^(���j��2�.�`��r� � A��{�h��ޯm^�n��wa8��,�������<8������6-��#m�K�}o�i��������0����s�p����v�ga��/2�H�Zm��-6 �·H�1�Bq4"��c�=�P/��e�S��Ģ,���5�<+����7������L��$�Q�����h�u��D�u����OY�=��޷3n�{��ഛX;����Pv�<��8 ������Ŭ]ɏ�6A�N~U��2l+�b����<{�ɍ �F�)�XW*��Ζ�B���l%�B�Z����6�g���Mv�9 z��a���D8��ử������ :Y�9�i����[�(����,��ϼ���$�����Q4G���K��;�C4.K��krod�s�t�W�7|f��h+��A���~��J��ƍ�T�X�U�����#uKC�����M��Sq�o���ZD�uL�{`d�ĉŁ9��Z_�!�{ñS��� �v��#�Sq���³f�}E����%�W4E;�h&8�����@yr7����'�q�7sR�f$��'��Z�O��K��i��"�}�K]��;\�o��,%�p�~�鵣*Z�f� �_�ق��-�A��J|W�uO��q��$&�ϛ8�*c�Z�̰�,�s�����u��r4~�03_�e�ߛ4�d���y����b��w���j'��/w!�W�q�#��[�shVNϫ��I�`�f`r�v���� �8K��w2��@���c�;_SS�W3���"1ܺ˼��T�R�S�IzPTmf+�R���:.#�ƫ���>�G3���ޓ�;���~�a�:��EQ;��.���8B�;�r�ܗ��g19=1�)o�a�)�Q�� ��'�m����^�V`�� �E�mQ(Pm��ww]�fd���/���q���zk�vr������V�;���q��*S���-���1�ȷO�@k��T�2Px����������!ɮ��~IøU�����[�{*3c�*͌k��p�Y�f�c`�$�ls:+U�$�=��?�\=�Li"�i+|B�#|���A�:��ohH��-��d�9�=�f>��cc�uo�S�\6��}k�T.R���.`����ޚ�9�Z�.V��F��Es�%���se��KeNfF�Y��7Es�F��FZ��"�f�����N�e�{ᢘ�x"�wATN�T.����zN�:vl���+�?N�¤ʳ����5���QO��!�c�$"Y�J����r{,9ʼnV9ri���B��=��������[O ��@ES}��h)�}MxΨ<\u���`+;���ѯ#��w��ZA�A��T-��w[���ي��X��jh�>,�Pf��j�ֹ�W0Z%4M��F�>��9Dk��%�Py��J?Zo��fC�Pާ)���ɴv%I�X���4�F���pڄQ�<!Ř_uQ&�����K�E�0��@Y�v�{]��h�&}`��.����ԖCF�!��,��ߴ�����py�۝{Hri���4sߠ�*�[�MJG�wc�_h*���n.F꒠��V\'�6�.��3[�ξz��着�_5h%�jh-t�$t������G�]W|^%�|v_����]��2Ch�+�E+WTC���;O�������M�������v���an�M�D;}��o^��$df�L��X%>n�#6۪OE��]tde�ɇ�a���>��&�`�귝ٙ�&_���[�JT���{���ESh�����L�W��� m2�,��H�X�j�����?5�-u����ػ���+�D8�fA�����fd�#=��h�a�{ �au�"ŹĪ���9-ą��@F�ܮ�Ats�V��[>��Y�"��q��p�Q�d!��/ׁ�?��IU��; line: 1, column: 2]
  3. 0

    GATE / Mailing Lists

    sourceforge.net | 1 year 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]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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]
  6. 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]
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