AnsweredAssumed Answered

Please help with a .Net API call

Question asked by Meera Sutaria on May 22, 2018
Latest reply on May 22, 2018 by Meera Sutaria

I am trying to upload a courses file using the .Net API. I have borrowed most of the code from Garth Egbert's example, which was very helpful btw. 


I am able to hit the Canvas site, I can see the token getting used but I am unable to get past that. I get a very unfriendly error message - "Error while importing CSV. Please contact support (Error report xxxxx)"

I have a CSV with UTF-8 Encoding. If I manually upload the file from within Canvas, it works. This tells me that the file is fine.


I checked with Canvas folks and they reported the error they are seeing is about "unknown mime type text/plain".


Attaching a snapshot of the code I am using. Can somebody look at it and see if you can find something obviously wrong? Any pointers will be highly appreciated. Let me know if you need more details.