AnsweredAssumed Answered

Canvas API POST request for File Upload returns Error Message required Expires Parameter

Question asked by Marcus Marcus on Mar 16, 2017
Latest reply on Jun 30, 2017 by rogrant@nmsu.edu

I'm trying to upload a file to canvas via a POST request as described in the Canvas Api Documentation.

 

The first Post request is successful, returning a JSON response.  However, the second Post request, in which I use the JSON parameters from the first request, returns a 403 Forbidden error with the following message: "Query-string authentication requires the Signature, Expires and AWSAccessKeyId parameters."

 

I'm not sure how to fix this error, as "Expires" does not appear as a parameter in the JSON response, nor does it appear in the Canvas API Documentation.  My Post request does include the Signature and AWSAccessKeyId parameters that I get from the JSON response to the first Post request.

 

Any ideas on how to fix this?

 

Also, I am using Google's Advanced Rest Client, and have successfully used the API to upload a file to Canvas using a URL.

 

Thanks for your help!

-marcus 

Outcomes