langsem
(Langsem)
July 28, 2023, 10:51am
1
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"”
}
]
}”
lrtetala
(Lakshman Reddy)
July 28, 2023, 10:52am
2
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!!
mkankatala
(Mahesh Kankatala)
July 28, 2023, 11:03am
3
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!!
langsem
(Langsem)
July 28, 2023, 11:11am
4
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
mkankatala
(Mahesh Kankatala)
July 28, 2023, 11:14am
5
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!!
lrtetala
(Lakshman Reddy)
July 28, 2023, 11:15am
6
@langsem
Once show the error message
mkankatala
(Mahesh Kankatala)
July 28, 2023, 11:21am
8
If you are using the invoke code activity pass the arguments.
If activity has any end point pass the endpoint there. @langsem
lrtetala
(Lakshman Reddy)
July 28, 2023, 11:27am
9
@langsem
Error is at End point was not supplied so please check it
langsem
(Langsem)
July 28, 2023, 11:37am
10
So the error is not the endpoint i have all that.
The eerror occure upon the body where it complains about the “”.
lrtetala
(Lakshman Reddy)
July 28, 2023, 11:38am
11
@langsem
Remove the double quotes and reassign it
langsem
(Langsem)
July 28, 2023, 11:47am
12
its still same error. Strange part is that exact same string works in another studio
lrtetala
(Lakshman Reddy)
July 28, 2023, 11:47am
13
@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!!
langsem
(Langsem)
July 28, 2023, 11:52am
15
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.
lrtetala
(Lakshman Reddy)
July 28, 2023, 12:01pm
17
@langsem
Try to delete the activity and reassign it.
If it not works try to reinstall the studio and again install then try