
RWS 2.0 GET file service response causes JSON decode error

mcham
✭
When trying to the contents of a directory on the controller I get a JSON decode error. The response is:
'{ "_links" : { "base" : { "href" : "https://192.168.125.1:443/fileservice/$home/paths/" } , "self" : { "href" : "" } } , "_embedded" : { "resources" : [ , { "_links" : { "parent" : { "href" : "" }, "self" : { "href" : "test.csv" } }, "_type" : "fs-file", "_title" : "test.csv", "fs-cdate" : "2022-09-21 T 04:56:08", "fs-mdate" : "2022-09-21 T 04:56:08", , "fs-size" : "37515", "fs-readonly" : "false" } ] }}'
There's 2 issues with this response: 1. after ""resources": [" there's a blank key, and 2. after ""2022-09-21 T 04:56:08"," is another space which causes the error while trying to decode it for JSON.
I've tried changing the content-type and accept headers but no luck. This also worked fine in RWS 1.0. I'm sure I could manually work around this but so far all other requests haven't had an issue with JSON.
I am running RW 7.2
Thanks for any help
'{ "_links" : { "base" : { "href" : "https://192.168.125.1:443/fileservice/$home/paths/" } , "self" : { "href" : "" } } , "_embedded" : { "resources" : [ , { "_links" : { "parent" : { "href" : "" }, "self" : { "href" : "test.csv" } }, "_type" : "fs-file", "_title" : "test.csv", "fs-cdate" : "2022-09-21 T 04:56:08", "fs-mdate" : "2022-09-21 T 04:56:08", , "fs-size" : "37515", "fs-readonly" : "false" } ] }}'
There's 2 issues with this response: 1. after ""resources": [" there's a blank key, and 2. after ""2022-09-21 T 04:56:08"," is another space which causes the error while trying to decode it for JSON.
I've tried changing the content-type and accept headers but no luck. This also worked fine in RWS 1.0. I'm sure I could manually work around this but so far all other requests haven't had an issue with JSON.
I am running RW 7.2
Thanks for any help
0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 323 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 812 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings