Giter Site home page Giter Site logo

Comments (9)

joshirakesh avatar joshirakesh commented on August 15, 2024 1

This issue has been resolved. We found that the base path used to obtain the initial token was wrong. We fixed it, and it now functions properly. Thank you very much for taking the time to check into this issue.

from samples.

 avatar commented on August 15, 2024

Thank you for your contribution to OneDrive API Docs. We will be triaging your incoming issue as soon as possible.

from samples.

ntennant4 avatar ntennant4 commented on August 15, 2024

Reviewing issue with OneDrive team

from samples.

figgsoftware avatar figgsoftware commented on August 15, 2024

Thanks @ntennant4! Let us know if you need help with the repro or anything else.

from samples.

patrick-rodgers avatar patrick-rodgers commented on August 15, 2024

@joshirakesh, @figgsoftware it looks like you are simply trying to execute a get request to the picker url? To allow the picker to be shown in an iframe you should construct a form with the frame and POST to the picker url. As well you should include an initial access_token in the form, as shown here.

Please give that a try and let us know if it gets you unblocked.

from samples.

joshirakesh avatar joshirakesh commented on August 15, 2024

Hi @patrick-rodgers Thanks for your response.

We do not perform a get request to the picker URL.

We are following the exact steps stated in the instructions here, as you mentioned.
We construct a form with the frame and POST to the picker URL.

The form post Request is as follows:

Request URL: https://figg.sharepoint.com/sites/Verifyit/Shared%20Documents/General/_layouts/15/FilePicker.aspx?filePicker=%7B%22sdk%22%3A%228.0%22%2C%22entry%22%3A%7B%22sharePoint%22%3A%7B%22byPath%22%3A%7B%22web%22%3A%22https%3A%2F%2Ffigg.sharepoint.com%2Fsites%2FVerifyit%2FShared%2520Documents%2FGeneral%22%7D%7D%7D%2C%22authentication%22%3A%7B%7D%2C%22messaging%22%3A%7B%22origin%22%3A%22https%3A%2F%2Flocalhost%3A44349%22%2C%22channelId%22%3A%22348d38ad-9a18-4203-ad73-bcb575fff9fa%22%7D%2C%22typesAndSources%22%3A%7B%22mode%22%3A%22files%22%2C%22pivots%22%3A%7B%22sharedLibraries%22%3Atrue%2C%22recent%22%3Atrue%2C%22oneDrive%22%3Atrue%7D%7D%2C%22selection%22%3A%7B%22mode%22%3A%22single%22%7D%7D
Request Method: POST
Status Code: 500

request-id: 6e4e59a0-2013-4000-c5d8-5c5a8c73d22e 

Response
500 INTERNAL SERVER ERROR

The form also includes an initial token. Please see the image below.
image

from samples.

patrick-rodgers avatar patrick-rodgers commented on August 15, 2024

I am unable to reproduce this no matter what I try to change based on the information you've shared. You say everything was working and stopped - did anything change when things stopped working? Has the AAD application changed? Are there any messages in the console?

I would note that if you really want to start in the "General" folder you could do something more like:

  entry: {
      sharePoint: {
          byPath: {
              web: "https://tenant.sharepoint.com/sites/dev",
              list: "Shared Documents",
              folder: "General",
          }
      }
  },

or

  entry: {
      sharePoint: {
          byPath: {
              web: "https://tenant.sharepoint.com/sites/dev",
              folder: "shared documents/General",
          }
      }
  },

from samples.

fullstackdev3 avatar fullstackdev3 commented on August 15, 2024

@joshirakesh Hi can you please guide me how did to resolve this issue because, I am having the same issue.

from samples.

Orangeapplebot avatar Orangeapplebot commented on August 15, 2024

Hey, what base path did you use to obtain the initial token?

from samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.