Adventech / sabbath-school-lessons

📖 The Lessons for every language
MIT License
100 stars 114 forks source link

Get request returns a network error #1589

Closed kevoniori closed 3 years ago

kevoniori commented 3 years ago

I've been trying to do API calls and I keep getting a 503 'Service Unavailable' error. Not sure if this is happening with anyone else, but I tried on your site and also using the postman application and they both returned a network error

VitalikL commented 3 years ago

Probably temporary outage? Here are the few API calls that are working for me:

GET https://sabbath-school.adventech.io/api/v1/en/quarterlies/2021-03/index.json

GET https://sabbath-school.adventech.io/api/v1/en/quarterlies/2021-03/lessons/01/index.json

kevoniori commented 3 years ago

These work, thanks much!

kevoniori commented 3 years ago

On further exploration, the path to the lesson comes up as a 404 and I get this error.

Screen Shot 2021-06-27 at 10 58 50 AM

VitalikL commented 3 years ago

@kevoniori, looks like you are forgetting index.json at the end the request URL

https://sabbath-school.adventech.io/api/v1/en/quarterlies/2021-03/lessons/01/days/07/read/index.json

kevoniori commented 3 years ago

Oh, yes thanks for that. I'm getting it now. It seems its an html markdown. What parser do you guys use for Swiftui development? I'm new to Swift so we've been working on an app for our church and wanted to integrate the Sabbath School content. I've used ink markdown parser but styling the html has been difficult