Giter Site home page Giter Site logo

Comments (13)

weismat avatar weismat commented on September 3, 2024

Same issue here...
Also removing the data of the & does not make a difference.

./onedrive-authorize: line 14: ./libs/json/bash-json-parser: No such file or directory
Something went wrong, here is the API response:
{"error":"invalid_request","error_description":"Public clients can't send a client secret."}

from bash-onedrive-upload.

fkalis avatar fkalis commented on September 3, 2024

@Wsget: You must only enter the M7c53xxx7-x4xf-2867-3931-e0000000f0 part. If you did, we have to take a look at your registered apps settings.

@weismat: It seems like you are missing the submodule bash-json-parser. Did you checkout the repository with the --recursive parameter as stated in the Readme file?

from bash-onedrive-upload.

weismat avatar weismat commented on September 3, 2024

I copied the zip directory and the file was not included. I created in now manually and it is good to go. I am stuck now though at uploading files and always receive "Folder structure created, no files uploaded."

from bash-onedrive-upload.

MatthiasWeiser avatar MatthiasWeiser commented on September 3, 2024

weismat with my company login.
./onedrive-upload -r onedrive-upload test
No refresh token received from API. Please try again or re-authorize.
No refresh token received from API. Please try again or re-authorize.
No refresh token received from API. Please try again or re-authorize.
An error has occurred while uploading 'onedrive-upload' (Code: )

from bash-onedrive-upload.

woosungchoi avatar woosungchoi commented on September 3, 2024

./onedrive-authorize

Please open the following URL in your browser and follow the steps until you see a blank page:
https://login.live.com/oauth20_authorize.srf?client_id=1xxx0000-000x-0000-0000-0xxx000xx00x&scope=wl.offline_access%20onedrive.readwrite&response_type=code&redirect_uri=https://login.live.com/oauth20_desktop.srf

When ready, please enter the value of the code parameter (from the URL of the blank page) and press return
xx00xxx00-000x-00xx-x000-000000x00x00
Something went wrong, here is the API response:
{"error":"invalid_request","error_description":"Public clients can't send a client secret."}

And my apps settings

Authentication config

export api_client_id="0xxx0000-000x-0000-0000-0xxx000xx00x"
export api_client_secret="00XX0X00X000X0X0000X000000X000X000X0XX00"

api_client_secret is Application Secrets - Private Key. Is that right?

and api_client_id is Application Id. Is that right?

from bash-onedrive-upload.

fkalis avatar fkalis commented on September 3, 2024

App ID has always dash. So readme file need to update.

If your App ID contains dashes, you have created the wrong (unsupported) application type. Please take a look at this comment.

from bash-onedrive-upload.

woosungchoi avatar woosungchoi commented on September 3, 2024

When I go into this link

https://apps.dev.microsoft.com/#/appList

00_link

and click add an app

01_add

and after create application

02_view

An ID with a dash is created.

There is no "create your application in the Live SDK applications section" option.

I mean there is no other option.

So, take a look at this problem plz.

from bash-onedrive-upload.

fkalis avatar fkalis commented on September 3, 2024

Please use the link from the README file and try again: https://apps.dev.microsoft.com/#/appList/create/sapi

This should automatically ask for an application name without clicking Add an app.

from bash-onedrive-upload.

woosungchoi avatar woosungchoi commented on September 3, 2024

Ok. I got it.

But when I upload file, always receive

"Folder structure created, no files uploaded"

message.

from bash-onedrive-upload.

fkalis avatar fkalis commented on September 3, 2024

Bug "Folder structure created, no files uploaded" found and fixed.

from bash-onedrive-upload.

weismat avatar weismat commented on September 3, 2024

Thank you very much for your quick help and support.

from bash-onedrive-upload.

WSGVET avatar WSGVET commented on September 3, 2024

Thx so much.

I will try.!

from bash-onedrive-upload.

woosungchoi avatar woosungchoi commented on September 3, 2024

It works great!

from bash-onedrive-upload.

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.