Error Thrown Upon Attempting to Sync With OneDrive

Get answers about the current version of MediaMonkey 5

Moderator: Gurus

mistvalleymusic
Posts: 6
Joined: Fri Sep 06, 2024 5:16 pm

Error Thrown Upon Attempting to Sync With OneDrive

Post by mistvalleymusic »

Hello,

I am having an issue with attempting to sync my MediaMonkey library with my OneDrive account. I have confirmed that I have the space in my online storage in order to be able to store the music there, but every time I hit sync I am shown the following error:
Application Error

Application throw an exception "Cannot read properties of undefined (reading 'startsWith')"
TypeError: Cannot read properties of undefined (reading 'startsWith')

at eval (file:///helpers/cloudServices.js:1834:35)
at Promise.eval (file:///helpers/cloudServices.js:1497:17) at invokeResolver (file:///promise.js:387:18)
at new Promise (file:///promise.js:374:7) at Object.checkAuth
(file:///helpers/cloudServices.js:1488:16) at Object.uploadFile (file:///helpers/cloudServices.js:1832:21)
at eval (file:///helpers/mediaUploader.js:77:37) in addon "onedrive" at line 1834!!

Source code:
1830. uploadFile: function (params, progressCallback)
1831. { var _this = this;
1832. return this.checkAuth(function (resolve, reject) {
1833.
1834. if (params.sourcePath.startsWith(
app.filesystem.getUserFolder() + 'OneDrive')) {
1835. reject('File already in OneDrive folder: ' +
app.filesystem.getUserFolder() + 'OneDrive');
1836. return;
18

Callstack: Script: file:///mminit.js; Func: window.myAlert; Row: 304; Col: 17
Script: file:///mminit.js; Func: window.alertException; Row: 314; Col: 9
Script: file:///mminit.js; Func: window.onerror; Row: 284; Col: 13

Would you like to restart MediaMonkey in Safe mode?
I'm wondering if this is being caused by the fact that the account I want to sync to (and have granted MediaMonkey access to) is not the same one that I am logged into in the OneDrive application on my desktop. I can of course also log into that one on my desktop, but I would rather not if i do not have to.
Lowlander
Posts: 57344
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Error Thrown Upon Attempting to Sync With OneDrive

Post by Lowlander »

Can you please tell us which Build (Help > About) of MediaMonkey are you seeing this with?
mistvalleymusic
Posts: 6
Joined: Fri Sep 06, 2024 5:16 pm

Re: Error Thrown Upon Attempting to Sync With OneDrive

Post by mistvalleymusic »

Lowlander wrote: Fri Sep 06, 2024 6:03 pm Can you please tell us which Build (Help > About) of MediaMonkey are you seeing this with?
Mediamonkey 5.0.5.2695

With Gold (Lifetime) license
Lowlander
Posts: 57344
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Error Thrown Upon Attempting to Sync With OneDrive

Post by Lowlander »

Can you please try with the latest MediaMonkey 2024 build and see if that fixes the issue for you?
mistvalleymusic
Posts: 6
Joined: Fri Sep 06, 2024 5:16 pm

Re: Error Thrown Upon Attempting to Sync With OneDrive

Post by mistvalleymusic »

Lowlander wrote: Fri Sep 06, 2024 9:00 pm Can you please try with the latest MediaMonkey 2024 build and see if that fixes the issue for you?
Happy to try this. Should I be using the debug or non-debug build?
Lowlander
Posts: 57344
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Error Thrown Upon Attempting to Sync With OneDrive

Post by Lowlander »

Either will do, if there is no problem, but if there is the debug version will be required.
mistvalleymusic
Posts: 6
Joined: Fri Sep 06, 2024 5:16 pm

Re: Error Thrown Upon Attempting to Sync With OneDrive

Post by mistvalleymusic »

Lowlander wrote: Sun Sep 08, 2024 5:36 pm Either will do, if there is no problem, but if there is the debug version will be required.
Thanks for this. Now on 2024.0.0.3051. The upload to my OneDrive appears to be occurring with no problems now - tested with just a couple of albums and no errors thrown whatsoever. But the new version seems less stable overall - had a crash almost immediately which I reported through what I assume is the in-built debugging reporting tool (I went with the debug build).

Hoping we see a stable update sooner than later!
Peke
Posts: 17794
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Error Thrown Upon Attempting to Sync With OneDrive

Post by Peke »

Hi,
If crash repeats please write down LOG ID (Lower Right, if it does not copy to clipboard)
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply