{"action":"created","issue":{"url":"https://api.github.com/repos/unsupported/canvas/issues/28","repository_url":"https://api.github.com/repos/unsupported/canvas","labels_url":"https://api.github.com/repos/unsupported/canvas/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/unsupported/canvas/issues/28/comments","events_url":"https://api.github.com/repos/unsupported/canvas/issues/28/events","html_url":"https://github.com/unsupported/canvas/issues/28","id":167392211,"number":28,"title":"bulk_upload_avatars.py IndexError: list index out of range","user":{"login":"etsoft2k","id":20644800,"avatar_url":"https://avatars.githubusercontent.com/u/20644800?v=3","gravatar_id":"","url":"https://api.github.com/users/etsoft2k","html_url":"https://github.com/etsoft2k","followers_url":"https://api.github.com/users/etsoft2k/followers","following_url":"https://api.github.com/users/etsoft2k/following{/other_user}","gists_url":"https://api.github.com/users/etsoft2k/gists{/gist_id}","starred_url":"https://api.github.com/users/etsoft2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etsoft2k/subscriptions","organizations_url":"https://api.github.com/users/etsoft2k/orgs","repos_url":"https://api.github.com/users/etsoft2k/repos","events_url":"https://api.github.com/users/etsoft2k/events{/privacy}","received_events_url":"https://api.github.com/users/etsoft2k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-25T15:17:58Z","updated_at":"2016-08-30T13:02:30Z","closed_at":null,"body":"I get the following error when running bulk_upoad_avatars.py\r\n\r\n'Done prepping Canvas for upload, now sending the data...'\r\nTraceback (most recent call last):\r\n  File \"upload_avatars.py.\", line 89, in <module>\r\n    _data[1] = ('upload_params',_data[1][1].items())\r\nIndexError: list index out of range\r\n\r\nThe csv file contain the headers and references to 2 images for 2 different sis_ids. \r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/unsupported/canvas/issues/comments/243430944","html_url":"https://github.com/unsupported/canvas/issues/28#issuecomment-243430944","issue_url":"https://api.github.com/repos/unsupported/canvas/issues/28","id":243430944,"user":{"login":"bailegre","id":20951024,"avatar_url":"https://avatars.githubusercontent.com/u/20951024?v=3","gravatar_id":"","url":"https://api.github.com/users/bailegre","html_url":"https://github.com/bailegre","followers_url":"https://api.github.com/users/bailegre/followers","following_url":"https://api.github.com/users/bailegre/following{/other_user}","gists_url":"https://api.github.com/users/bailegre/gists{/gist_id}","starred_url":"https://api.github.com/users/bailegre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bailegre/subscriptions","organizations_url":"https://api.github.com/users/bailegre/orgs","repos_url":"https://api.github.com/users/bailegre/repos","events_url":"https://api.github.com/users/bailegre/events{/privacy}","received_events_url":"https://api.github.com/users/bailegre/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T13:02:30Z","updated_at":"2016-08-30T13:02:30Z","body":"Thanks!  Very helpful.\r\n\r\nGreg\r\n\r\nFrom: mrendon [mailto:notifications@github.com]\r\nSent: Monday, August 29, 2016 6:03 PM\r\nTo: unsupported/canvas <canvas@noreply.github.com>\r\nCc: Bailey, Greg <Greg.Bailey@niacc.edu>; Comment <comment@noreply.github.com>\r\nSubject: Re: [unsupported/canvas] bulk_upload_avatars.py IndexError: list index out of range (#28)\r\n\r\n\r\nThe way it's written it's expecting the canvas id, not the sis id. I was able to get it to work by changing it to pass the sis_user_id. For example\r\n'as_user_id':'{0}'.format(user_image['user_id']) becomes\r\n'as_user_id':'sis_user_id:{0}'.format(user_image['user_id'])\r\nnote sis_user_id:'\r\n\r\n—\r\nYou are receiving this because you commented.\r\nReply to this email directly, view it on GitHub<https://github.com/unsupported/canvas/issues/28#issuecomment-243283915>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AT-v8MgTNwn9TrQsfPQuP2jnyCSEAnz2ks5qk2U7gaJpZM4JUO2O>.\r\n"}}
{"actor":{"display_login":"bailegre"}}