Closed codecraf8 closed 1 month ago
Not sure if you will still need this. It doesn't work while started in a new thread.
Anyone ever figure out how to fix this? I'm seeing this exact same "RuntimeError: There is no current event loop in thread 'Thread-31'." using Python 3.8.1. I'm not in any way explicitly starting it in a new thread. I'm just redirecting at the browser window level to a Django view that tries to create an onedrivesdk.AuthProvider.
Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #209 for more information
I am trying to upload files to Onedrive via django.
The code is same as mentioned in the documentation
I am getting an error in the line where a try to create a client object.
Stacktrace - https://gist.githubusercontent.com/codecraf8/3a461baad407bec2d2a970c4e2392ce1/raw/d576d12b17e1ae518462c0e77be17e610bbdac92/gistfile1.txt