Hi,
I’m recieving a successful JSON response from my API on postman.
I am trying to connect to this api from Xibo remote dataset, it gives me the following error:
"Unable to get Data for TimeTable because cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong.
JSON Response on postman:
{
"Status": {
"StatusCode": 200,
"Reason": "OK",
"X-bla-Event-Id": "3ff8525c-5433-11ea-abb1-0a2835080000-1"
},
"TeachingSessions": [
{
"AcademicYear": "2020",
"StaffUID": null,
"StaffName": null,
"StaffDisplayName": null,
"ActivityName": "ECON1101_S1-TutA/51",
"ActivityType": "Tutorial",
"ActivityTypeDescription": "Tutorial",
"ModuleName": "ECON1101_S1",
"ModuleDescription": "Microeconomics 1",
"ModuleConvener": "Dr Dana",
"ModuleHAL": "programsandcoursescom/2019/course/ECON1101",
"ActivityDuration": 120,
"TeachingSessionStartDateTime": null,
"TeachingSessionEndDateTime": null,
"LocationCampus": null,
"LocationCampusName": null,
"LocationID": null,
"LocationName": null,
"LocationDescription": null,
"LocationCapacity": null,
"LocationURL": null
},
{
"AcademicYear": "2020",
"StaffUID": null,
"StaffName": null,
"StaffDisplayName": null,
"ActivityName": "ECON1102_S1-TutA/11",
"ActivityType": "Tutorial",
"ActivityTypeDescription": "Tutorial",
"ModuleName": "ECON1102_S1",
"ModuleDescription": "Macroeconomics 1",
"ModuleConvener": "Dr Timo Henckel",
"ModuleHAL": "programsandcoursescom/2019/course/ECON1102",
"ActivityDuration": 60,
"TeachingSessionStartDateTime": null,
"TeachingSessionEndDateTime": null,
"LocationCampus": null,
"LocationCampusName": null,
"LocationID": null,
"LocationName": null,
"LocationDescription": null,
"LocationCapacity": null,
"LocationURL": null
},
{
"AcademicYear": "2020",
"StaffUID": null,
"StaffName": null,
"StaffDisplayName": null,
"ActivityName": "ECON1101_S1-TutA/33",
"ActivityType": "Tutorial",
"ActivityTypeDescription": "Tutorial",
"ModuleName": "ECON1101_S1",
"ModuleDescription": "Microeconomics 1",
"ModuleConvener": "Dr Dana",
"ModuleHAL": "programsandcoursescom/2019/course/ECON1101",
"ActivityDuration": 120,
"TeachingSessionStartDateTime": null,
"TeachingSessionEndDateTime": null,
"LocationCampus": null,
"LocationCampusName": null,
"LocationID": null,
"LocationName": null,
"LocationDescription": null,
"LocationCapacity": null,
"LocationURL": null
},
{
"AcademicYear": "2020",
"StaffUID": null,
"StaffName": null,
"StaffDisplayName": null,
"ActivityName": "ECON1101_S1-TutA/42",
"ActivityType": "Tutorial",
"ActivityTypeDescription": "Tutorial",
"ModuleName": "ECON1101_S1",
"ModuleDescription": "Microeconomics 1",
"ModuleConvener": "Dr Dana",
"ModuleHAL": "programsandcoursescom/2019/course/ECON1101",
"ActivityDuration": 120,
"TeachingSessionStartDateTime": null,
"TeachingSessionEndDateTime": null,
"LocationCampus": null,
"LocationCampusName": null,
"LocationID": null,
"LocationName": null,
"LocationDescription": null,
"LocationCapacity": null,
"LocationURL": null
},
{
"AcademicYear": "2020",
"StaffUID": null,
"StaffName": null,
"StaffDisplayName": null,
"ActivityName": "ECON1101_S1-TutA/06",
"ActivityType": "Tutorial",
"ActivityTypeDescription": "Tutorial",
"ModuleName": "ECON1101_S1",
"ModuleDescription": "Microeconomics 1",
"ModuleConvener": "Dr Dana",
"ModuleHAL": "programsandcoursescom/2019/course/ECON1101",
"ActivityDuration": 120,
"TeachingSessionStartDateTime": null,
"TeachingSessionEndDateTime": null,
"LocationCampus": null,
"LocationCampusName": null,
"LocationID": null,
"LocationName": null,
"LocationDescription": null,
"LocationCapacity": null,
"LocationURL": null
}
]
}
Here is my xibo setup:
Authentication is basic auth, it works with postman.
My data root is set as TeachingSessions
Please help me with what I’m missing here.
Regards,
Harish