uchicago-cs/chisubmit

Using too many extensions on manual submission

Opened this issue · 1 comments

When there are too many extensions used on manual submission, Chisubmit can't parse the error data right. Relevant output:

You are going to make a submission for ASSIGNMENT (ASSIGNMENT).
The commit you are submitting is the following:

      Commit: COMMIT_SHA
        Date: DATE
     Message: COMMIT_MESSAGE
      Author: AUTHOR
PLEASE VERIFY THIS IS THE EXACT COMMIT YOU WANT TO SUBMIT

Are you sure you want to continue? (y/n):  y
ERROR: The submission was not completed. The server reported the following errors:
HTTP 400 response included incorrectly formatted error data:
{"submitted_at":"2019-02-12 09:03:57+00:00","extensions_available":0,"extensions_override":2,"extensions_needed":4,"deadline":"2019-02-09 05:59:00+00:00","errors":["The extensions override you have specified would leave the team with a negative number of extensions."]}

Er, the command I ran was chisubmit instructor assignment submit CNET ASSIGNMENT COMMIT_SHA 2