-
Hi community, I'm trying to post announcements through canvas API since I do have a lot of courses and the information is the same. I am doing the following:
and also I tried adding a "s" and the end of the attachment parameter:
But I'm getting this error: CanvasException: Encountered an error: status code 500. I don't know what am I doing wrong or if it is still a capability the package does not have. I ran the following as a solution and worked and now I am wondering why it didn't work with canvasapi.
Any help would be appreciated! @bennettscience Sebastian |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @SebasMeza, looks like you've found a bug! I've created an issue to address it: #621 |
Beta Was this translation helpful? Give feedback.
@SebasMeza The fix has been released in CanvasAPI version 3.2.0
Your first code block should work now. Alternatively, you can set
attachment
equal to the filename (as a string) and CanvasAPI will handle opening, reading, and closing the file for you.