Error when creating pages with Canvas API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2015
09:15 PM
I am writing a tool to move Moodle courses to Canvas. The basic process is to run SQL scripts to extract data from the Moodle database and then to use the Canvas API to create the corresponding items in Canvas. I have run into an issue. Some of my pages will create, others will not. The error I am getting is shows in the debug output below. How can I determine what is causing the internal_server_error? Are there any special rules on the wiki_page[body] content? (html/css is included in the wiki_page[body])
The debug output below is an example of on of the pages that failed.
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2015
08:20 AM
Solution found: the data must be UTF8 encoded prior to passing to Canvas API.