404 response because of wrong API URL generated by onedrive.js

%3CLINGO-SUB%20id%3D%22lingo-sub-1857773%22%20slang%3D%22en-US%22%3E404%20response%20because%20of%20wrong%20API%20URL%20generated%20by%20onedrive.js%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1857773%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20got%20an%20issue%20with%20your%20OneDrive%20File%20Picker%20Javascript%20SDK%20(i'm%20using%207.2)%2C%20when%20i%20use%20the%20share%20or%20download%20actions%20(it%20works%20with%20the%20query%20actions)%2C%20%3CSTRONG%3EOneDrive.js%20generate%20wrong%20API%20URL%3C%2FSTRONG%3E%2C%20mysteriously%2C%20your%20Javascript%20append%20to%20the%20API%20url%20the%20sharepoint%20site%20name.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20more%20details%20of%20what%20i%20do%20and%20to%20reproduce%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELike%20specified%20in%20your%20documentation%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Fdeveloper%2Fcontrols%2Ffile-pickers%2Fjs-v72%2Fopen-file%3Fview%3Dodsp-graph-online%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Fdeveloper%2Fcontrols%2Ffile-pickers%2Fjs-v72%2Fopen-file%3Fview%3Dodsp-graph-online%3C%2FA%3E)%2C%20we%20can%20pass%20in%20endpointHint%20a%20SharePoint%20document%20library%20URL.%3CBR%20%2F%3ESo%20i've%20set%20the%20URL%20to%20my%20shared%20documents%20sharepoint%20website%2C%20i'm%20under%20a%20french%20sharepoint%20so%20url%20is%20%3CA%20href%3D%22https%3A%2F%2Fmytenant.sharepoint.com%2FDocuments%2520partages%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmytenant.sharepoint.com%2FDocuments%2520partages%2F%3C%2FA%3E%20instead%20of%20%3CA%20href%3D%22https%3A%2F%2Fmytenant.sharepoint.com%2Fshared%2520documents%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmytenant.sharepoint.com%2Fshared%2520documents%2F%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEverything%20ok%2C%20popup%2C%20then%20login%2C%20then%20the%20onedrive%20picking%20page%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2297581212-9526e180-19f4-11eb-975e-2a5185c1029f.png%22%20style%3D%22width%3A%20980px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231707iADEB65D2FB897CDC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2297581212-9526e180-19f4-11eb-975e-2a5185c1029f.png%22%20alt%3D%2297581212-9526e180-19f4-11eb-975e-2a5185c1029f.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20select%20one%20or%20several%20files%2C%20then%20click%20on%20%22Ouvrir%22%20(Open)%2C%20popup%20close%20and%20then%20i%20got%20404%20error%20response%20with%20this%20error%20%3A%3C%2FP%3E%3CPRE%3EXHR%20GET%20https%3A%2F%2Fmytenant.sharepoint.com%2FDocuments%2520partages%2F_api%2Fv2.0%2Fdrives%2Fb!SACSU4CwMEumL8i7GhBy_6-tGhuvB9VBhv2zaXnTBlwJEM203M0NRb0Nrb5cytGZ%2Fitems%2F01YGYIIS7WVLP4SNN4CNBLPC7ZUWSJ4ZJW%0A%5BHTTP%2F2%20404%20Not%20Found%2068ms%5D%0AXHR%20GET%20https%3A%2F%2Fmytenant.sharepoint.com%2FDocuments%2520partages%2F_api%2Fv2.0%2Fdrives%2Fb!SACSU4CwMEumL8i7GhBy_6-tGhuvB9VBhv2zaXnTBlwJEM203M0NRb0Nrb5cytGZ%2Fitems%2F01YGYIIS37VMXCKXOYE5FKUSIBZF42OTDH%0A%5BHTTP%2F2%20404%20Not%20Found%2065ms%5D%0A%5BOneDriveSDK%5D%20calling%20xhr%20failure%20callback%2C%20status%3A%20404%20%0AOneDrive.js%3A4%3A42959%0A%5BOneDriveSDK%5D%20Received%20ajax%20error.%20%0AOneDrive.js%3A4%3A42959%0A%5BOneDriveSDK%5D%20Failed%20due%20to%20unknown%20error%3A%20%20%0AOneDrive.js%3A4%3A42959%0ATypeError%3A%20a%20is%20undefined%0A%20%20%20%20shareItems%20https%3A%2F%2Fjs.live.net%2Fv7.2%2FOneDrive.js%3A4%0A%20%20%20%20shareItems%20https%3A%2F%2Fjs.live.net%2Fv7.2%2FOneDrive.js%3A4%0A%20%20%20%20o%20https%3A%2F%2Fjs.live.net%2Fv7.2%2FOneDrive.js%3A12%0A%20%20%20%20H%20https%3A%2F%2Fjs.live.net%2Fv7.2%2FOneDrive.js%3A12%0A%20%20%20%20A%20https%3A%2F%2Fjs.live.net%2Fv7.2%2FOneDrive.js%3A12%0A%20%20%20%20f%20https%3A%2F%2Fjs.live.net%2Fv7.2%2FOneDrive.js%3A12%3C%2FPRE%3E%3CP%3EI%20don't%20know%20why%2C%20but%20OneDrive.js%20generates%20wrong%20API%20urls%2C%20instead%20of%20generating%20%3CA%20href%3D%22https%3A%2F%2Fmytenant.sharepoint.com%2F_api%2Fv2.0%2Fdrives%2F%7BdriveId%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmytenant.sharepoint.com%2F_api%2Fv2.0%2Fdrives%2F%7BdriveId%3C%2FA%3E%7D%20it%20generates%20%3CA%20href%3D%22https%3A%2F%2Fmytenant.sharepoint.com%2FDocuments%2520partages%2F_api%2Fv2.0%2Fdrives%2F%7BdriveId%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmytenant.sharepoint.com%2FDocuments%2520partages%2F_api%2Fv2.0%2Fdrives%2F%7BdriveId%3C%2FA%3E%7D%3C%2FP%3E%3CP%3EThe%20subdir%20%2FDocuments%2520partages%20is%20appended%20to%20the%20URI...%20here%20is%20a%20screenshot%20of%20Firefox%20console%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2297581754-3e6dd780-19f5-11eb-98e7-3718ab4bb829.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231709iC0DEE3F68540E04C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2297581754-3e6dd780-19f5-11eb-98e7-3718ab4bb829.png%22%20alt%3D%2297581754-3e6dd780-19f5-11eb-98e7-3718ab4bb829.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHere%20is%20my%20snippet%3A%3C%2FP%3E%3CDIV%20class%3D%22highlight%20highlight-source-js%22%3E%3CPRE%3E%3CSPAN%20class%3D%22pl-k%22%3Elet%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-s1%22%3EodOptions%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-c1%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-kos%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-c1%22%3EclientId%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-s1%22%3EappId%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-c1%22%3Eaction%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-s%22%3E%22share%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-c1%22%3EmultiSelect%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-c1%22%3Etrue%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-c1%22%3Eadvanced%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-kos%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-c1%22%3EendpointHint%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-s%22%3E'https%3A%2F%2Fmytenant.sharepoint.com%2FDocuments%2520partages%2F'%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-c1%22%3EcreateLinkParameters%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-kos%22%3E%7B%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-c1%22%3Etype%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-s%22%3E%22edit%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-c1%22%3Escope%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-s%22%3E%22organization%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-kos%22%3E%7D%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-c1%22%3EredirectUri%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-v%22%3ERouting%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-en%22%3Egenerate%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-s%22%3E'onedrive_redirect'%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-c1%22%3Enull%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-c1%22%3Etrue%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E)%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-kos%22%3E%7D%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-en%22%3Esuccess%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-k%22%3Efunction%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-s1%22%3Efiles%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E)%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-kos%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-smi%22%3Econsole%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-en%22%3Elog%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-s1%22%3Efiles%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E)%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%3B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-kos%22%3E%7D%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-en%22%3Ecancel%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-k%22%3Efunction%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E)%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-kos%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-smi%22%3Econsole%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-en%22%3Elog%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-s%22%3E'cancel'%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E)%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%3B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-kos%22%3E%7D%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%2C%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-en%22%3Eerror%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22pl-k%22%3Efunction%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-s1%22%3Eerror%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E)%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pl-kos%22%3E%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-smi%22%3Econsole%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-en%22%3Elog%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-s1%22%3Eerror%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E)%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%3B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-kos%22%3E%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-kos%22%3E%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22pl-v%22%3EOneDrive%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-en%22%3Eopen%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-s1%22%3EodOptions%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E)%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-kos%22%3E%3B%3C%2FSPAN%3E%3C%2FPRE%3E%3C%2FDIV%3E%3CP%3EHere%20is%20the%20SDK%20version%20i%20used%3A%3C%2FP%3E%3CP%3E%3CA%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ehttps%3A%2F%2Fjs.live.net%2Fv7.2%2FOneDrive.js%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20%3A%20i've%20replaced%20my%20real%20tenant%20name%20instead%20of%20mytenant%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1857773%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Efilepicker%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ejs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi everyone,

 

I got an issue with your OneDrive File Picker Javascript SDK (i'm using 7.2), when i use the share or download actions (it works with the query actions), OneDrive.js generate wrong API URL, mysteriously, your Javascript append to the API url the sharepoint site name.

 

Here is more details of what i do and to reproduce :

 

Like specified in your documentation (https://docs.microsoft.com/en-us/onedrive/developer/controls/file-pickers/js-v72/open-file?view=odsp...), we can pass in endpointHint a SharePoint document library URL.
So i've set the URL to my shared documents sharepoint website, i'm under a french sharepoint so url is https://mytenant.sharepoint.com/Documents%20partages/ instead of https://mytenant.sharepoint.com/shared%20documents/.

 

Everything ok, popup, then login, then the onedrive picking page:

 

97581212-9526e180-19f4-11eb-975e-2a5185c1029f.png

 

I select one or several files, then click on "Ouvrir" (Open), popup close and then i got 404 error response with this error :

XHR GET https://mytenant.sharepoint.com/Documents%20partages/_api/v2.0/drives/b!SACSU4CwMEumL8i7GhBy_6-tGhuvB9VBhv2zaXnTBlwJEM203M0NRb0Nrb5cytGZ/items/01YGYIIS7WVLP4SNN4CNBLPC7ZUWSJ4ZJW
[HTTP/2 404 Not Found 68ms]
XHR GET https://mytenant.sharepoint.com/Documents%20partages/_api/v2.0/drives/b!SACSU4CwMEumL8i7GhBy_6-tGhuvB9VBhv2zaXnTBlwJEM203M0NRb0Nrb5cytGZ/items/01YGYIIS37VMXCKXOYE5FKUSIBZF42OTDH
[HTTP/2 404 Not Found 65ms]
[OneDriveSDK] calling xhr failure callback, status: 404 
OneDrive.js:4:42959
[OneDriveSDK] Received ajax error. 
OneDrive.js:4:42959
[OneDriveSDK] Failed due to unknown error:  
OneDrive.js:4:42959
TypeError: a is undefined
    shareItems https://js.live.net/v7.2/OneDrive.js:4
    shareItems https://js.live.net/v7.2/OneDrive.js:4
    o https://js.live.net/v7.2/OneDrive.js:12
    H https://js.live.net/v7.2/OneDrive.js:12
    A https://js.live.net/v7.2/OneDrive.js:12
    f https://js.live.net/v7.2/OneDrive.js:12

I don't know why, but OneDrive.js generates wrong API urls, instead of generating https://mytenant.sharepoint.com/_api/v2.0/drives/{driveId} it generates https://mytenant.sharepoint.com/Documents%20partages/_api/v2.0/drives/{driveId}

The subdir /Documents%20partages is appended to the URI... here is a screenshot of Firefox console :

 

97581754-3e6dd780-19f5-11eb-98e7-3718ab4bb829.png

Here is my snippet:

let odOptions = {
                clientId: appId,
                action: "share",
                multiSelect: true,
                advanced: {
                    endpointHint: 'https://mytenant.sharepoint.com/Documents%20partages/',
                    createLinkParameters: { type: "edit", scope: "organization" },
                    redirectUri: Routing.generate('onedrive_redirect', null, true),
                },
                success: function(files) {
                    console.log(files);
                },
                cancel: function() {
                    console.log('cancel');
                },
                error: function(error) {
                    console.log(error);
                }
            }
            OneDrive.open(odOptions);

Here is the SDK version i used:

https://js.live.net/v7.2/OneDrive.js

 

PS : i've replaced my real tenant name instead of mytenant

 

 

1 Reply

Can someone help me on this? Don't have any news also on Github. Issue still here. Thanks.