hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 22 forks source link

Fatal: TypeError: Return value of MarioPerrotta\FlysystemOneDrive\OneDriveAdapter::listContents() must be of the type array, bool returned at <<closure>> #51

Open git-ere opened 3 years ago

git-ere commented 3 years ago

Using:

After adding an a OneDrive External Storage, going to "Files in nextcloud, I get the following error message: "This directory is unavailable, please check the logs or contact the administrator"

In the logs I find the following entry;

[webdav] Fatal: TypeError: Return value of MarioPerrotta\FlysystemOneDrive\OneDriveAdapter::listContents() must be of the type array, bool returned at <>

  1. /var/www/html/custom_apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php line 247 MarioPerrotta\FlysystemOneDrive\OneDriveAdapter->listContents("/Geschäftsstell ... o", true)

any help is highly appreciated.

imazes commented 3 years ago

get the same problem

git-ere commented 3 years ago

upgraded to 20.0.5 still an error: message":{"Exception":"TypeError","Message":"Return value of MarioPerrotta\FlysystemOneDrive\OneDriveAdapter::listContents() must be of the type array, bool returned","Code":0

when the OneDrive seems to be mounted, the user can no longer access the "files" as he gets the error: "You don't have permission to upload or create files here"

662 commented 3 years ago

+1

fmoledina commented 3 years ago

I get the same issue on NC 21.0.0.

tebeliment commented 3 years ago

+1 on NC 21.0.1.

atkulp commented 2 years ago

+1 on 21.0.4

As mentioned by @git-ere, it's as simple as mounting a OneDrive location. If the extension is enabled but not mounted then everything is fine. If I mount my folder (personal, Office 365) as admin or user-level, no files at all come up and it returns a 500 (after a long delay) with the following error:

PROPFIND /remote.php/dav/files/{user}/

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>TypeError</s:exception>
  <s:message>Return value of MarioPerrotta\FlysystemOneDrive\OneDriveAdapter::listContents() must be of the type array, bool returned</s:message>
</d:error>