Onedrive impersonation

Turns out there are two separate issues. One is the impersonation (which we think by using olihey’s branch is working!), but the other is a crash when we are pushing our own Sharepoint library (we are a consulting company, doing this for a client. We wanted to eat our own dog food. Their’s is working, ours is ~800GB):

I tried to put the error in here and it says that new users can only put 2 links in a post. The links are things like:

github.com/ncw/rclone/backend/onedrive/api.(*Item).IsRemote(…)

But the gist of the error is:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x170 pc=0xa4b727]

There is a lot more… let me know where else I can paste the rest of the error please… we are loving this software!