Http body shows error even tho its copy paste code

Hi i have two studios open where i have one studio where a http request works 100% and another studio where i get error. Strange part its that the body string its exact same as the other studio
Its complaining about the “”.

"
{““robot_id””: 3,
““workshops””:[
{
““workshop_id””: "“1080"”,
““start_date””: "“2023-05-04"”
},
{
““workshop_id””: "“1122"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1121"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1126"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1130"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1120"”,
““start_date””: ““2023-06-23"”
}
]
}”

Hi @langsem

Please try this

{
  "robot_id": 3,
  "workshops": [
    {
      "workshop_id": "1080",
      "start_date": "2023-05-04"
    },
    {
      "workshop_id": "1122",
      "start_date": "2023-06-26"
    },
    {
      "workshop_id": "1121",
      "start_date": "2023-06-26"
    },
    {
      "workshop_id": "1126",
      "start_date": "2023-06-26"
    },
    {
      "workshop_id": "1130",
      "start_date": "2023-06-26"
    },
    {
      "workshop_id": "1120",
      "start_date": "2023-06-23"
    }
  ]
}

I hope it works!!

Hi @langsem

Remove first and last double quotes. For html codes don’t need to give double quotes
Check the below code

{""robot_id"": 3,
““workshops"":[
{
""workshop_id"": ""1080"",
""start_date"": ""2023-05-04""
},
{
““workshop_id””: "“1122"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1121"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1126"”,
““start_date””: "“2023-06-26"”
},
{
""workshop_id"": ""1130"",
""start_date"": ""2023-06-26""
},
{
""workshop_id"": ""1120"",
""start_date"": ""2023-06-23""
}
]
}

If it doesn’t work show the error you are getting then it will be better for us to understanding.

Hope it helps!!

Non above did work I am afraid. The strange part its that the body is exact copy of a working body. So dont understand why it shall be an error in another studio

Sorry for that @langsem

Try the below one

{
  "robot_id": 3,
  "workshops": [
    {
      "workshop_id": "1080",
      "start_date": "2023-05-04"
    },
    {
      "workshop_id": "1122",
      "start_date": "2023-06-26"
    },
    {
      "workshop_id": "1121",
      "start_date": "2023-06-26"
    },
    {
      "workshop_id": "1126",
      "start_date": "2023-06-26"
    },
    {
      "workshop_id": "1130",
      "start_date": "2023-06-26"
    },
    {
      "workshop_id": "1120",
      "start_date": "2023-06-23"
    }
  ]
}

Hope it works!!

@langsem

Once show the error message

This is the error

If you are using the invoke code activity pass the arguments.
If activity has any end point pass the endpoint there. @langsem

@langsem

Error is at End point was not supplied so please check it

So the error is not the endpoint i have all that.
The eerror occure upon the body where it complains about the “”.

@langsem
Remove the double quotes and reassign it

its still same error. Strange part is that exact same string works in another studio

@langsem

Try to upgrade the package

Hi @langsem
Check with all the quotes .Might getting an error in detecting different types of quotes.

Hope it helps!!

Thanks for response, but still getting error. Even ran it trought chatgpt and it says its the correct structure. Seems like a UiPath bug itself

"
{““robot_id””: 3,
““workshops””:[
{
““workshop_id””: "“1080"”,
““start_date””: "“2023-05-04"”
},
{
““workshop_id””: "“1122"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1121"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1126"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1130"”,
““start_date””: "“2023-06-26"”
},
{
““workshop_id””: "“1120"”,
““start_date””: ““2023-06-23"”
}
]
}”

Ok Then give a Try to deleting the activity and reassign it.

@langsem

Try to delete the activity and reassign it.
If it not works try to reinstall the studio and again install then try

Ok will give it a shot

1 Like