Skip to content

Instantly share code, notes, and snippets.

@evilj0e
Created December 1, 2017 17:58
Show Gist options
  • Save evilj0e/0a82f51509b7fd7f5b0463eceaae197b to your computer and use it in GitHub Desktop.
Save evilj0e/0a82f51509b7fd7f5b0463eceaae197b to your computer and use it in GitHub Desktop.
courseraprogramming upload
λ courseraprogramming upload coursera.v2.1.1-3 D3N8dyBiEeecWRJ5VaDnfA sIwfA YNyyO
Saving image coursera.v2.1.1-3 to /tmp/coursera.v2.1.1-3.tar... done.
INFO:root:Attempting to retrieve new tokens from the endpoint. You will be prompted to authorize the courseraprogramming app in your web browser.
INFO:root:About to request new OAuth2 tokens from Coursera.
Please visit the following URL to authorize this app:
https://accounts.coursera.org/oauth2/v1/auth?access_type=offline&state=b07d25825cae4e679fab40f421475fa0&redirect_uri=http%3A%2F%2Flocalhost%3A9876%2Fcallback&response_type=code&client_id=NS8qaSX18X_Eu0pyNbLsnA&scope=view_profile+manage_graders
Mac OS X detected; attempting to auto-open the url in your default browser...
127.0.0.1 - - [01/Dec/2017 22:22:42] "GET /callback?state=b07d25825cae4e679fab40f421475fa0&code=uO4rSgNQ7u2Wa48-cVQvKJ4_kx_-YiBpHt8_ExAKdck HTTP/1.1" 200 -
About to upload to server:
adwoa.transloadit.com
with upload id:
4ea87fe7145b436ea289abbe8b9bd14d
Status API:
https://adwoa.transloadit.com/assemblies/4ea87fe7145b436ea289abbe8b9bd14d
Assembly upload complete.... (typically < 2 min)
ERROR:root:Could not parse the uploaded url correctly. URL: https://coursera-uploads.s3-eu-west-1.amazonaws.com/authoring/programming/grid/_/4ea87fe7145b436ea289abbe8b9bd14d/coursera.v2.1.1-3.tar?AWSAccessKeyId=AKIAJEYKY2N42CX3KS5Q&Expires=1512150518&Signature=qrcoAqTPaZMJXjPzAaOf57m5I9g%3D
ERROR:root:Problem when running command. Sorry!
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/courseraprogramming/main.py", line 99, in main
return args.func(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/courseraprogramming/commands/upload.py", line 230, in command_upload
upload_information = poll_transloadit(args, upload_url)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/courseraprogramming/commands/upload.py", line 176, in poll_transloadit
raise Exception('Error parsing the upload url!')
Exception: Error parsing the upload url!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment