'Client error: `POST https://api.dropboxapi.com/2/files/list_folder` resulted in a `401 Unauthorized

I am trying to backup my database zip file to Dropbox from Laravel Application and I am getting the following error. Complete Log Link

Client error: `POST https://api.dropboxapi.com/2/files/list_folder` resulted in a `401 Unauthorized

enter image description here

I am using A flysystem driver for Dropbox

On the other hand, It's working fine on Cpanel but not working on Local XAMPP installation based on windows.



Solution 1:[1]

If you have enabled all the required permissions then I think this is very likely you have only one user allowed to access the API. Just click on Link Users from the settings tab to allow more development users to the API.

enter image description here

After that click on Regenerate Access token button and use that token.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1