java.lang.IllegalStateException: Not a JSON Object
fauziasf opened this issue · 6 comments
it happened when i entered the course & discovery menu
can you help me??
Can u please share the logcat?
this is the logcat:
2020-07-19 14:42:04.443 29361-29361/id.ac.atmajaya.atmazeds E/org.edx.mobile.util.images.ErrorUtils: java.lang.IllegalStateException: Not a JSON Object: [{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BCLD211.2x%2B2018_T4","effort":"Total 27 to 45 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+CLD211.2x+2018_T4","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+CLD211.2x+2018_T4+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+CLD211.2x+2018_T4+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+CLD211.2x+2018_T4+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+CLD211.2x+2018_T4+type@asset+block@course_image.jpg"}},"name":"Microsoft SharePoint 2016: Authentication and Security","number":"CLD211.2x","org":"AtmaZeds","short_description":"Learn how to plan and configure the authentication and security requirements for SharePoint Server 2016 to better protect your organization's environment.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+CLD211.2x+2018_T4"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT101x%2B2019_T2","effort":null,"end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT101x+2019_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT101x+2019_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT101x+2019_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT101x+2019_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT101x+2019_T2+type@asset+block@course_image.jpg"}},"name":"Introduction to Data Science","number":"DAT101x","org":"AtmaZeds","short_description":"","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT101x+2019_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT201x%2B2018_T2","effort":"Total 24 to 30 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT201x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT201x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":"http://www.youtube.com/watch?v=fBNCHUb2nFw"},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT201x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT201x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT201x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Querying Data with Transact-SQL","number":"DAT201x","org":"AtmaZeds","short_description":"From querying and modifying data in SQL Server or Azure SQL to programming with Transact-SQL, learn essential skills that employers need.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT201x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT202.1x%2B2018_T2","effort":"Total 15 to 25 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT202.1x+2018_T2","medi 2020-07-19 14:42:04.443 29361-29361/id.ac.atmajaya.atmazeds E/org.edx.mobile.util.images.ErrorUtils: a":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT202.1x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.1x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.1x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.1x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Processing Big Data with Hadoop in Azure HDInsight","number":"DAT202.1x","org":"AtmaZeds","short_description":"Learn how to use Hadoop technologies in Microsoft Azure HDInsight to process big data.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT202.1x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT202.2x%2B2018_T2","effort":"Total 8 to 12 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT202.2x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT202.2x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.2x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.2x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.2x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Implementing Real-Time Analytics with Hadoop in Azure HDInsight","number":"DAT202.2x","org":"AtmaZeds","short_description":"Learn how to use Hadoop technologies like HBase, Storm, and Spark in Microsoft Azure HDInsight to create real-time analytical solutions.\n","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT202.2x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT202.3x%2B2018_T2","effort":"Total 18 to 24 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT202.3x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT202.3x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.3x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.3x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT202.3x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Implementing Predictive Analytics with Spark in Azure HDInsight","number":"DAT202.3x","org":"AtmaZeds","short_description":"Learn how to use Spark in Microsoft Azure HDInsight to create predictive analytics and machine learning solutions.\n","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT202.3x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT204x%2B2018_T2","effort":"Total 8 to 12 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT204x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT204x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT204x+2018_T2+type@asset+block@course_image.jpg","small":"h 2020-07-19 14:42:04.449 29361-29361/id.ac.atmajaya.atmazeds E/org.edx.mobile.util.images.ErrorUtils: ttps://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT204x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT204x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Introduction to R for Data Science","number":"DAT204x","org":"AtmaZeds","short_description":"Learn the R statistical programming language, the lingua franca of data science in this hands-on course.\n","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT204x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT205x%2B2018_T2","effort":"Total 8 to 16 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT205x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT205x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT205x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT205x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT205x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Introduction to Data Analysis using Excel","number":"DAT205x","org":"AtmaZeds","short_description":"Learn the basics of Excel, one of the most popular data analysis tools, to help visualize and gain insights from your data.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT205x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT206x%2B2019_T1","effort":"Total 12 to 24 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT206x+2019_T1","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT206x+2019_T1+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT206x+2019_T1+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT206x+2019_T1+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT206x+2019_T1+type@asset+block@course_image.jpg"}},"name":"Analyzing and Visualizing Data with Excel","number":"DAT206x","org":"AtmaZeds","short_description":"Develop your skills with Excel, one of the common tools that data scientists depend on to gather, transform, analyze, and visualize data.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT206x+2019_T1"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT207x%2B2019_T3","effort":"","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT207x+2019_T3","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT207x+2019_T3+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT207x+2019_T3+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT207x+2019_T3+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT207x+2019_T3+type@asset+block@course_image.jpg"}},"name":"Analyzing and Visualizing Data with Power BI","number":"DAT207x","org":"AtmaZeds","short_description":"Learn Power BI, a powerful 2020-07-19 14:42:04.449 29361-29361/id.ac.atmajaya.atmazeds E/org.edx.mobile.util.images.ErrorUtils: cloud-based service that helps data scientists visualize and share insights from their data.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT207x+2019_T3"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT208x%2B2018_T3","effort":"Total 12 to 24 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT208x+2018_T3","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT208x+2018_T3+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT208x+2018_T3+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT208x+2018_T3+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT208x+2018_T3+type@asset+block@course_image.jpg"}},"name":"Introduction to Python for Data Science","number":"DAT208x","org":"AtmaZeds","short_description":"The ability to analyze data with Python is critical in data science. Learn the basics, and move on to create stunning visualizations.\n","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT208x+2018_T3"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT213x%2B2018_T2","effort":"Total 8 to 16 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT213x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT213x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT213x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT213x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT213x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Analyzing Big Data with Microsoft R","number":"DAT213x","org":"AtmaZeds","short_description":"Learn how to use Microsoft R Server to analyze large datasets using R, one of the most powerful programming languages.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT213x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT220x%2B2018_T3","effort":"Total 12 to 18 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT220x+2018_T3","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT220x+2018_T3+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT220x+2018_T3+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT220x+2018_T3+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT220x+2018_T3+type@asset+block@course_image.jpg"}},"name":"Delivering a Data Warehouse in the Cloud","number":"DAT220x","org":"AtmaZeds","short_description":"Learn how to deploy, design, and load data using Microsoft's Azure SQL Data Warehouse.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT220x+2018_T3"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/ap 2020-07-19 14:42:04.449 29361-29361/id.ac.atmajaya.atmazeds E/org.edx.mobile.util.images.ErrorUtils: i/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT222x%2B2018_T2","effort":"Total 12 to 24 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT222x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT222x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT222x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT222x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT222x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Essential Statistics for Data Analysis using Excel","number":"DAT222x","org":"AtmaZeds","short_description":"Gain a solid understanding of statistics and basic probability, using Excel, and build on your data analysis and data science foundation.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT222x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT223.1x%2B2018_T2","effort":"Total 12 to 16 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT223.1x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT223.1x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.1x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.1x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.1x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Processing Big Data with Azure Data Lake Analytics","number":"DAT223.1x","org":"AtmaZeds","short_description":"Learn how to use Azure Data Lake technologies to store and process big data in the cloud.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT223.1x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT223.2x%2B2018_T4","effort":"Total 12 to 16 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT223.2x+2018_T4","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT223.2x+2018_T4+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.2x+2018_T4+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.2x+2018_T4+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.2x+2018_T4+type@asset+block@course_image.jpg"}},"name":"Processing Real-Time Data Streams in Azure","number":"DAT223.2x","org":"AtmaZeds","short_description":"Learn how to use Microsoft Azure technologies to process real-time data in the cloud.","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT223.2x+2018_T4"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDAT223.3x%2B2018_T2","effort":"Total 12 to 16 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DAT223.3x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DAT223.3x+201 2020-07-19 14:42:04.450 29361-29361/id.ac.atmajaya.atmazeds E/org.edx.mobile.util.images.ErrorUtils: 8_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.3x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.3x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DAT223.3x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Orchestrating Big Data with Azure Data Factory","number":"DAT223.3x","org":"AtmaZeds","short_description":"Learn how to use Microsoft Azure Data Factory to orchestrate big data workflows in the cloud.\n","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DAT223.3x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BDIS50x%2B2018_T2","effort":"Total 36 to 60 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+DIS50x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+DIS50x+2018_T2+type@asset+block@course_image.jpg"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DIS50x+2018_T2+type@asset+block@course_image.jpg","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DIS50x+2018_T2+type@asset+block@course_image.jpg","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+DIS50x+2018_T2+type@asset+block@course_image.jpg"}},"name":"Developing International Software","number":"DIS50x","org":"AtmaZeds","short_description":"Learn how to design and develop software for international use from experts who’ve helped create some of the world’s most successful software.\n","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+DIS50x+2018_T2"},{"blocks_url":"https://atmazeds.atmajaya.ac.id/api/courses/v1/blocks/?course_id=course-v1%3AAtmaZeds%2BINF260x%2B2018_T2","effort":"Total 8 to 16 hours","end":"2030-01-02T00:00:00Z","enrollment_start":"2019-01-01T00:00:00Z","enrollment_end":"2030-01-02T00:00:00Z","id":"course-v1:AtmaZeds+INF260x+2018_T2","media":{"course_image":{"uri":"/asset-v1:AtmaZeds+INF260x+2018_T2+type@asset+block@course_image.png"},"course_video":{"uri":null},"image":{"raw":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+INF260x+2018_T2+type@asset+block@course_image.png","small":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+INF260x+2018_T2+type@asset+block@course_image.png","large":"https://atmazeds.atmajaya.ac.id/asset-v1:AtmaZeds+INF260x+2018_T2+type@asset+block@course_image.png"}},"name":"Microsoft Azure Security Services","number":"INF260x","org":"AtmaZeds","short_description":"Understand the current nature of the security threat landscape and study the new security architecture and features of Microsoft Azure.\n","start":"2019-01-01T00:00:00Z","start_display":"Jan. 1, 2019","start_type":"timestamp","pacing":"self","mobile_available":true,"hidden":false,"invitation_only":false,"course_id":"course-v1:AtmaZeds+INF260x+2018_T2"}] at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:90) at org.edx.mobile.http.serialization.JsonPageDeserializer.deserialize(JsonPageDeserializer.java:18) at org.edx.mobile.http.serialization.JsonPageDeserializer.deserialize(JsonPageDeserializer.java:15) at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:37) at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:25) at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:117) at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:211) 2020-07-19 14:42:04.450 29361-29361/id.ac.atmajaya.atmazeds E/org.edx.mobile.util.images.ErrorUtils: at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:106) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761)
The exception is saying that you are providing something other than a JSON Object where a JSON Object is expected and in your case whatever API you are hitting is returning a JSON Array instead.
Fix that and everything should work fine.
where can i change this JSONArray to JSONObject? in which code file and which line?
@fauziasf As you can see in your mentioned JSON that starts with [
that represents JSON Array and as per exception logs code expected JSON object instated of JSON Array
any suggestion what should i do since this response is officially from openEDX?
this is the API i hit:
"/api/courses/v1/courses/"
i think the response doesnt have "results" and 'pagination' in JsonPageDeserializer
public Page<?> deserialize(JsonElement json, final Type typeOfT, JsonDeserializationContext context) throws JsonParseException { final List<?> list = context.deserialize(json.getAsJsonObject().get("results"), new ParameterizedType() { public Type getRawType() { return List.class; } public Type getOwnerType() { return null; } public Type[] getActualTypeArguments() { return ((ParameterizedType) typeOfT).getActualTypeArguments(); } }); JsonElement paginationJson = json.getAsJsonObject().get("pagination"); if (null == paginationJson || paginationJson.isJsonNull()) { paginationJson = json; } final PaginationData paginationData = context.deserialize(paginationJson, PaginationData.class); return new Page<>(paginationData, list); }