Comments (9)
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.
Thank you for your contribution to OneDrive API Docs. We will be triaging your incoming issue as soon as possible.
from samples.
Reviewing issue with OneDrive team
from samples.
Thanks @ntennant4! Let us know if you need help with the repro or anything else.
from samples.
@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.
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.
from samples.
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.
@joshirakesh Hi can you please guide me how did to resolve this issue because, I am having the same issue.
from samples.
Hey, what base path did you use to obtain the initial token?
from samples.
Related Issues (20)
- File Browser: Browser Configuration Schema in documentation differs from code sample HOT 2
- Document Sets are intermittently treated as "files" HOT 4
- Production mode loginPopup issue: BrowserAuthError - User Cancelled Flow HOT 2
- FilePicker: Instructions insufficient to run example
- UnableToDetermineOneDriveLocation HOT 5
- File Picker does show "My files" without refresh HOT 19
- How to pick file from frontend and download that file from python backend HOT 1
- File picker, SPFx and permissions HOT 6
- Shared Links Break in SharePoint After File Relocation
- FilePicker v8.0 triggers call to `my.sharepoint` endpoint
- file-picking/javascript-basic-consumer broken HOT 17
- File Browser: Provide documentation on how to hide Version history and Compliance Details commands HOT 1
- File Browser: Host navigation configuration option does not work as described in documentation
- Bypassing login flow in FilePicker v8 or FilePicker v7.2 with access token
- Shared files list is empty in OneDrive JS Picker HOT 1
- File Browser: Mobile support? HOT 2
- OneDrive File Picker gives 404 HOT 2
- Teams specific themes not working. HOT 2
- Getting error "We're sorry, sign-in isn't working right now. But we're on it! Please try again later." using OneDrive file picker
- Be able to change accounts in file picker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samples.