So have been developing an application to manage courses and grant users permissions to said courses and was able to throw together a UI that creates a course, sets-up up content migration and adds a primary and secondary teacher to the course.
Doing some refactoring recently, adding other features and the last part (adding teachers) now fails. I seem to get 400 codes whenever I make an API call to the enrollment API for the newly minted course.
Thing is - I make exactly the same call a little later and it goes through fine.
So I introduce a timer between creating the course and adding users to see if it helps and get it to work once with one user but not both - and then after that, it continues to fail even extending the timer to larger and larger values.
My question is - are there load and timing issues with newly created courses that I need to be made aware of and check for before I can enrol users into a course?
I should note this has been done pointing to a test environment - but it does make me worried even in a prod environment where there may be more resources in the back, can I come across a high load situation that will return similar errors?
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.