On the averages and assignments endpoints, the function fails and crashes, returning an error. I checked the logs, but no error was called.