Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Invalid authorization value in HTTP header #13

Closed
w4ng101 opened this issue Oct 4, 2017 · 4 comments
Closed

Invalid authorization value in HTTP header #13

w4ng101 opened this issue Oct 4, 2017 · 4 comments

Comments

@w4ng101
Copy link

w4ng101 commented Oct 4, 2017

Hi Art,

Can you help me this issue's?

Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with message 'Client error: POST https://content.dropboxapi.com/2/files/upload resulted in a 400 Bad Request response: Error in call to API function "files/upload": Invalid authorization value in HTTP header "Authorization": "Bearer 163{" (truncated...) ' in C:\xampp\htdocs\dropbox-v2-php\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 C:\xampp\htdocs\dropbox-v2-php\vendor\guzzlehttp\guzzle\src\Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 C:\xampp\htdocs\dropbox-v2-php\vendor\guzzlehttp\promises\src\Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response)) #2 C:\xampp\htdocs\dropbox-v2-php\vendor\guzzlehttp\promises\src\Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array) #3 C:\xampp\htdocs\dropbox-v2-php\vendor\guzzlehttp\promises\src\TaskQ in C:\xampp\htdocs\dropbox-v2-php\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113

@Alorel
Copy link
Owner

Alorel commented Oct 4, 2017

You need to set the Dropbox API access token before you can make API calls. You can either do this for every class manually, or globally as described in the readme.

@Alorel Alorel closed this as completed Oct 4, 2017
@w4ng101
Copy link
Author

w4ng101 commented Oct 4, 2017

Hi Art,

Yes I've been solve the issue's do you have an example upload large files like folder,zip etc.

@Alorel
Copy link
Owner

Alorel commented Oct 5, 2017

@w4ng101
Copy link
Author

w4ng101 commented Oct 5, 2017

Yeah I've been using that thanks Arl :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants