OneDrive / samples

Contains samples, scenarios, and guidance for integrating with OneDrive and SharePoint drives, drive items, and files.
MIT License
58 stars 59 forks source link

OneDrive File Picker v8 - Production integration has stopped working and raising a 404 error #47

Closed tomagendium closed 1 year ago

tomagendium commented 1 year ago

Hi,

We've had a working integration in our product using the OneDrive File Picker v8 and have had several customers using it without issue. In the last few weeks however, we got reports that it was no longer working, and indeed our own testing has shown that it's now generating some errors in the browser console after the authentication stage - namely a POST 404ing, followed by many JS errors from within the picker frame. I can see that some content has loaded inside the picker frame, but at that point it fails and displays nothing.

The source of the request that 404s is interestingly in a file path dated June 2nd which would line up to when this started happening.

I've had a look over the documentation in case something had changed about how this is supposed to be implemented, but I haven't found anything, and so we're turning here for help. One note related to the picker config below - as said this was working with the below config, but I did try many variations on the entry field (full url, specifying folders etc.) and all result in the same error. Real values replaced with customer_ variables below.

Picker configuration:

const params = {
  sdk: '8.0',
  entry: {
    sharePoint: {
      byPath: {
        web: `/sites/customer_site_name`
      }
    }
  },
  authentication: {},
  messaging: {
    origin: document.location.origin,
    channelId: channelId
  },
  typesAndSources: {
    mode: 'files',
    pivots: {
      recent: false,
      oneDrive: false,
      sharedLibraries: false
    }
  },
  selection: {
    mode: 'multiple'
  }
};

404 error

JS errors

od_error
patrick-rodgers commented 1 year ago

I am not able to duplicate this behavior. My samples are all working as expected. It is possible there was a regression that is now fixed. Are you still seeing problems?

patrick-rodgers commented 1 year ago

Closing this issue as answered. If you have additional questions or we did not answer your question, please open a new issue, ref this issue, and provide any additional details available. Thank you!