Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-12961

[Coach-Impact].FruitApp.Knowage.InvalidJsonMessage

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      • when i make a rest data set is telling me is not a valid json format and it is valid, i've validated it.

        Activity

        Hide
        zerbetto Davide Zerbetto added a comment -

        The issue has been emailed:

        • Time sent: 21/Nov/17 7:03 AM
        • To: eslem@fruitsapp.com
        • with subject: RE: [Coach-Impact].FruitApp.KnowAge.InvalidJsonMessage

        Hi
        in order to reproduce the error, could you please send us an example of JSON response as returned by your service?
        Best regards
        Davide

        Show
        zerbetto Davide Zerbetto added a comment - The issue has been emailed: Time sent: 21/Nov/17 7:03 AM To: eslem@fruitsapp.com with subject: RE: [Coach-Impact] .FruitApp.KnowAge.InvalidJsonMessage Hi in order to reproduce the error, could you please send us an example of JSON response as returned by your service? Best regards Davide
        Hide
        fw.ext.user FW External User added a comment -

        Comment by eslem@fruitsapp.com :

        Hi,

        sure, i've validated with jsonlint:

         
        [

        {"name":"MF BRASIL TRADING","role":"Seller","date":"2017-11-21T11:37:19.003Z","verified":true,"emailVerified":true,"premium":false,"recommended":false,"vat":"+55 19 97406-9646","country":"Brazil","city":"Limeira ","province":"Sao Paulo","pc":"13481219","address":"Rua Maria Ap Pequim Rossi, 76","phone":"","webpage":"","lang":"es","intraComunitarian":false,"interes":["MANGO","LIMA","MANGO HADEN","NARANJA","MANGO TOMMY ATKINS","PAPAYA","MELÓN AMARILLO","MANGO KEITH","AGUACATE","CACAHUETE"],"email":"gcbrasilgrupo@gmail.com","id":"5a140fefebcffe576513a5a1","date_name":"date"}

        ,{"name":"Aquino Export SL","role":"Trader","date":"2017-11-21T10:45:28.345Z","verified":true,"emailVerified":true,"premium":false,"recommended":false,"vat":"ES-B12887022","country":"Spain","city":"Villarreal","province":"Castello","pc":"12540","address":"Cami Carretera, 42","phone":"628113094","webpage":"Www.aquinoexport.com","location":

        {"lat":39.9311942,"lng":-0.1135457}

        ,"lang":"es","intraComunitarian":false,"email":"aritzkerman@aquinoexport.com","id":"5a1403c8ebcffe576513a404","date_name":"date"}]

         Regards.
        Eslem Alzate
        -

        Show
        fw.ext.user FW External User added a comment - Comment by eslem@fruitsapp.com : Hi, sure, i've validated with jsonlint:   [ {"name":"MF BRASIL TRADING","role":"Seller","date":"2017-11-21T11:37:19.003Z","verified":true,"emailVerified":true,"premium":false,"recommended":false,"vat":"+55 19 97406-9646","country":"Brazil","city":"Limeira ","province":"Sao Paulo","pc":"13481219","address":"Rua Maria Ap Pequim Rossi, 76","phone":"","webpage":"","lang":"es","intraComunitarian":false,"interes":["MANGO","LIMA","MANGO HADEN","NARANJA","MANGO TOMMY ATKINS","PAPAYA","MELÓN AMARILLO","MANGO KEITH","AGUACATE","CACAHUETE"],"email":"gcbrasilgrupo@gmail.com","id":"5a140fefebcffe576513a5a1","date_name":"date"} ,{"name":"Aquino Export SL","role":"Trader","date":"2017-11-21T10:45:28.345Z","verified":true,"emailVerified":true,"premium":false,"recommended":false,"vat":"ES-B12887022","country":"Spain","city":"Villarreal","province":"Castello","pc":"12540","address":"Cami Carretera, 42","phone":"628113094","webpage":"Www.aquinoexport.com","location": {"lat":39.9311942,"lng":-0.1135457} ,"lang":"es","intraComunitarian":false,"email":"aritzkerman@aquinoexport.com","id":"5a1403c8ebcffe576513a404","date_name":"date"}]  Regards. Eslem Alzate -
        Hide
        zerbetto Davide Zerbetto added a comment -

        The issue has been emailed:

        • Time sent: 22/Nov/17 2:50 PM
        • To: eslem@fruitsapp.com
        • with subject: RE: [Coach-Impact].FruitApp.KnowAge.InvalidJsonMessage

        Hi
        could you please try modifying the REST service in a way that it returns a JSON Object instead of a JSON Array?
        You can embed the current output like this:

        { items: <JSON Array> }

        Please let me know.
        Best regards
        Davide

        Show
        zerbetto Davide Zerbetto added a comment - The issue has been emailed: Time sent: 22/Nov/17 2:50 PM To: eslem@fruitsapp.com with subject: RE: [Coach-Impact] .FruitApp.KnowAge.InvalidJsonMessage Hi could you please try modifying the REST service in a way that it returns a JSON Object instead of a JSON Array? You can embed the current output like this: { items: <JSON Array> } Please let me know. Best regards Davide
        Hide
        fw.ext.user FW External User added a comment -

        Comment by eslem@fruitsapp.com :

        Hi

        is this the only way that can work? i have the server in production and i cannot make right now custom routes just to test if this will work, the string is a valid json and to make that  change means redeploy the server.

        Regards.

        -

        Show
        fw.ext.user FW External User added a comment - Comment by eslem@fruitsapp.com : Hi is this the only way that can work? i have the server in production and i cannot make right now custom routes just to test if this will work, the string is a valid json and to make that  change means redeploy the server. Regards. -
        Hide
        zerbetto Davide Zerbetto added a comment -

        The issue has been emailed:

        • Time sent: 23/Nov/17 11:26 AM
        • To: eslem@fruitsapp.com
        • with subject: RE: [Coach-Impact].FruitApp.KnowAge.InvalidJsonMessage

        Hi
        we are trying to find a solution in a way you don't need to modify your services.
        I'll let you know asap.
        regards
        Davide

        Show
        zerbetto Davide Zerbetto added a comment - The issue has been emailed: Time sent: 23/Nov/17 11:26 AM To: eslem@fruitsapp.com with subject: RE: [Coach-Impact] .FruitApp.KnowAge.InvalidJsonMessage Hi we are trying to find a solution in a way you don't need to modify your services. I'll let you know asap. regards Davide
        Hide
        zerbetto Davide Zerbetto added a comment -

        The issue has been emailed:

        • Time sent: 28/Nov/17 3:08 PM
        • To: eslem@fruitsapp.com
        • with subject: RE: [Coach-Impact].FruitApp.KnowAge.InvalidJsonMessage

        Hi
        I created a bug issue for knowage:

        https://jira.fiware.org/browse/APP-1622

        (I think you are not allowed to see it).
        We will fix this bug by next release (i.e. December), and we will try to give you update packages asap.
        I close this issue.
        Best regards
        Davide

        Show
        zerbetto Davide Zerbetto added a comment - The issue has been emailed: Time sent: 28/Nov/17 3:08 PM To: eslem@fruitsapp.com with subject: RE: [Coach-Impact] .FruitApp.KnowAge.InvalidJsonMessage Hi I created a bug issue for knowage: https://jira.fiware.org/browse/APP-1622 (I think you are not allowed to see it). We will fix this bug by next release (i.e. December), and we will try to give you update packages asap. I close this issue. Best regards Davide

          People

          • Assignee:
            zerbetto Davide Zerbetto
            Reporter:
            arigliano Francesco Arigliano
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: