Activity Feed
- Got a Kudo for Re: When using API to upload file via URL, the upload url sometimes returns 502 status code. 08-06-2020 02:01 AM
- Posted Re: Can I use Canvas Studio API to upload media file for a user? on Canvas Developers Group. 10-09-2019 12:09 PM
- Posted Can I use Canvas Studio API to upload media file for a user? on Canvas Developers Group. 09-13-2019 11:53 AM
- Tagged Can I use Canvas Studio API to upload media file for a user? on Canvas Developers Group. 09-13-2019 11:53 AM
- Tagged Can I use Canvas Studio API to upload media file for a user? on Canvas Developers Group. 09-13-2019 11:53 AM
- Tagged Can I use Canvas Studio API to upload media file for a user? on Canvas Developers Group. 09-13-2019 11:53 AM
- Tagged Can I use Canvas Studio API to upload media file for a user? on Canvas Developers Group. 09-13-2019 11:53 AM
- Posted Re: When using API to upload file via URL, the upload url sometimes returns 502 status code on Canvas Developers Group. 02-11-2019 12:15 PM
- Posted Re: When using API to upload file via URL, the upload url sometimes returns 502 status code on Canvas Developers Group. 02-08-2019 11:20 AM
- Kudoed Re: When using API to upload file via URL, the upload url sometimes returns 502 status code for James. 02-08-2019 11:20 AM
- Got a Kudo for Re: When using API to upload file via URL, the upload url sometimes returns 502 status code. 02-04-2019 08:39 PM
- Posted Re: When using API to upload file via URL, the upload url sometimes returns 502 status code on Canvas Developers Group. 02-04-2019 01:36 PM
- Kudoed When using API to upload file via URL, the upload url sometimes returns 502 status code for tshek. 02-04-2019 01:30 PM
- Kudoed Re: When using API to upload file via URL, the upload url sometimes returns 502 status code for James. 02-04-2019 01:30 PM
- Got a Kudo for When using API to upload file via URL, the upload url sometimes returns 502 status code. 02-04-2019 01:30 PM
- Kudoed Re: When using API to upload file via URL, the upload url sometimes returns 502 status code for James. 02-01-2019 10:59 AM
- Posted Re: When using API to upload file via URL, the upload url sometimes returns 502 status code on Canvas Developers Group. 01-31-2019 03:31 PM
- Posted When using API to upload file via URL, the upload url sometimes returns 502 status code on Canvas Developers Group. 01-30-2019 04:31 PM
- Tagged When using API to upload file via URL, the upload url sometimes returns 502 status code on Canvas Developers Group. 01-30-2019 04:31 PM
- Tagged When using API to upload file via URL, the upload url sometimes returns 502 status code on Canvas Developers Group. 01-30-2019 04:31 PM
My Posts
Post Details | Date Published | Views | Kudos |
---|---|---|---|
Can I use Canvas Studio API to upload media file for a user? I'd like to upload a media file from a URL to a Canvas Studio user's "My Uploads". I see that there is a Canvas Studio Public API that might do what I want. From looking at the public API, q... |
09-13-2019 |
1903 |
0 |
When using API to upload file via URL, the upload url sometimes returns 502 status code I'm using the file upload API to upload files to user accounts via a URL. When I post to the upload_url provided by the API endpoint (e.g. "users/1234/files?as_user_id=1234"), it usually returns a 20... |
01-30-2019 |
2637 |
1 |
10-09-2019
12:09 PM
Hello Myles, Thanks for taking the time to respond to my posting. It turns out that what we need is a server-to-server API call that is not happening in the context of a specific user, so it's not an oAuth type scenario. We want something like Canvas's file upload API. As far as we can tell, Studio currently does not support this, unfortunately. But many thanks for responding! -terence
... View more
09-13-2019
11:53 AM
I'd like to upload a media file from a URL to a Canvas Studio user's "My Uploads". I see that there is a Canvas Studio Public API that might do what I want. From looking at the public API, questions I have are: 1) Is there more documentation for the API that I just haven't found yet? 2) How do I get an authorization token for the API? I tried my Canvas authorization token, but it doesn't seem to work. 3) Whose user account does the media get uploaded to? API does not seem to specify a target user for the upload. Thanks for any pointers! -t
... View more
02-11-2019
12:15 PM
Interesting. We'll see if the fix affects the upload API. I am still logging 502 codes.
... View more
02-08-2019
11:20 AM
It's not clear what the context was for those users' errors, but it is possible. The last 502 error I've seen was logged 2/7 in the afternoon.
... View more
02-04-2019
01:36 PM
1 Kudo
James, Thanks for the suggestion. I am checking for the quota error separately, & it doesn't look like any of the 502 cases were getting anywhere near their quota, which is over 5GB. I can force the quota error to happen under test conditions, & it's not the same as the 502, but the quota limit is certainly something to keep in mind when uploading.
... View more
01-31-2019
03:31 PM
James, thanks for the suggestions. Every 502 that I've manually followed up on has successfully uploaded to the users' accounts. The files tend to be large, 100MB or larger, but other files of similar size upload without the 502 error code. So far I don't see a pattern. The status code is being reported, but I just don't see anything wrong when I follow up later. As you note, at this point I don't see anything I can do on my end.
... View more
01-30-2019
04:31 PM
1 Kudo
I'm using the file upload API to upload files to user accounts via a URL. When I post to the upload_url provided by the API endpoint (e.g. "users/1234/files?as_user_id=1234"), it usually returns a 201 HTTP status code. However, I sometimes get a 502 HTTP status code & HTML that looks like this: <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx</center> </body> </html> When I check the progress URL for the upload later, though, it shows that the upload has completed successfully. So it looks like the 502 status code does not indicate an error situation? How do I detect that errors that occur for the post to the upload_url, then?
... View more