-
-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Unable to query OneDrive API to obtain required account details #2941
Comments
@laf0rge
Whilst your non-verbose log is showing an error, I need to see and trace through where and why and if something can be done for your scenario. You may also need to investigate having the owner of the sharepoint site provide a few more permissions for your account to allow some of these queries to occur - which sets up a number of things in the way the application works internally. |
@laf0rge First install all the required platform dependencies to build the client on your respective platforms. Please read https://github.com/abraunegg/onedrive/blob/master/docs/install.md#building-from-source---high-level-requirements and then follow correctly for your platform. Once this is done, to clone the PR to resolve your issue, you can use a script like the following:
This script will create a local folder called To run the PR, you need to run the client from the PR build directory:
To install the PR, you will need to perform When running the PR, your version should be: |
@laf0rge |
I will respond as soon as I have a chance. Im currently travelling on holidays with very limited time in front of my computer. Give me another day or so.
It's absolutely impossible for me to get thecsdministrator of the SharePoint to change any settings. But I'm happy to try your patch and provide logs. Thanks!
--
Sent from a mobile device. Please excuse my brevity.
|
The
I'll pass along the |
@laf0rge |
the above was still done via 2.5.2. The PR related feedback was added to the PR. The debug logs (bothe debian 2.5.2 + your PR-branch) are sent by personal email to you. |
@laf0rge When running this PR, you should be using |
@laf0rge or future readers When using the PR for this problem, the following application output is generated:
At this point, there are potentially only one further option to try which is to add If this still fails with this specific entry, the client is unable to support this type of connection to a SharePoint site where there is no SharePoint License associated as to query all the Graph API endpoints it needs this. Why this does work when simply using a web browser I do not know, as the web browser uses AFAIK the same Microsoft Graph API to render the content. Closing this issue as unable to support any further, unless @laf0rge can test the 'azure_tenant_id' configuration which is the last resort. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
I would like to use this software to synchronize files from a business sharepoint site to my local machine. I can access the https://undisclosed-site.sharepoint.com/ via the web browser just fine.
However, when I want to use this software, after the initial authentication it always fails like this:
I think this may be related to the fact that my account has no [personal] OneDrive or Office 365 at all. It only has access to that sharepoint instance.
The oauth first seems to succeed but then the GET to
/v1.0/me/drive
fails with HTTP status 400.Operating System Details
Client Installation Method
From Distribution Package
OneDrive Account Type
SharePoint
What is your OneDrive Application Version
onedrive v2.5.2-1
What is your OneDrive Application Configuration
What is your 'curl' version
Where is your 'sync_dir' located
Local
What are all your system 'mount points'
What are all your local file system partition types
How do you use 'onedrive'
intended use is just to sync some sharepoint folders.
Steps to reproduce the behaviour
onedrive --get-sharepoint-drive-id membergateway.sharepoint.com
Complete Verbose Log Output
Screenshots
No response
Other Log Information or Details
No response
Additional context
I have never used nor any intention to use any other microsoft services than this business sharepoint.
The text was updated successfully, but these errors were encountered: