NastuzziSamy / files_external_gdrive

[BETA - UNSTABLE] GDrive external storage for NextCloud
GNU Affero General Public License v3.0
78 stars 24 forks source link

JS error on when creating external storage #40

Closed Aeronaut closed 5 years ago

Aeronaut commented 5 years ago

Nextcloud 15 External storage support for Google Drive from Apps-Store (Version 0.2.5)

I get this JS error on Chrome and Firefox (others not tested): URLs: https://[mynextcloud]/index.php/settings/user/externalstorages https://[mynextcloud]/index.php/settings/admin/externalstorages

gdrive.js?v=f9530325-0:10 
Uncaught TypeError: Cannot read property 'Settings' of undefined
    at HTMLDocument.<anonymous> (gdrive.js?v=f9530325-0:10)
    at j (core.js?v=f9530325-0:2)
    at Object.fireWith [as resolveWith] (core.js?v=f9530325-0:2)
    at Function.ready (core.js?v=f9530325-0:2)
    at HTMLDocument.I (core.js?v=f9530325-0:2)

Even if I add storage manually like this: sudo -u www-data php occ files_external:create gdrive files_external_gdrive oauth2::oauth2 -c 'client_id'='----' -c 'client_secret'='--' ... the entry gets this symbol: <span data-placement="right" title="" class="error icon-error-white" data-original-title="Exception: Creating Google storage failed"></span>

Log Entry:

[files_external] Error: Exception: Creating Google storage failed at <<closure>>

 0. /var/www/____/apps/files_external/lib/config.php line 237
    __construct({client_id: "875 ... "})
 1. /var/www/___/apps/files_external/lib/Controller/StoragesController.php line 256
    getBackendStatus("\\OCA\\Files_ex ... e", {client_id: "875 ... "}, false, "true")
 2. /var/www/___/apps/files_external/lib/Controller/StoragesController.php line 305
    updateStorageStatus(OCA\Files_External\Lib\StorageConfig {}, "true")
 3. /var/www/___/apps/files_external/lib/Controller/UserStoragesController.php line 107
    show("12", "true")
 4. /var/www/___/lib/private/AppFramework/Http/Dispatcher.php line 166
    show("12", "true")
 5. /var/www/___/lib/private/AppFramework/Http/Dispatcher.php line 99
    executeController(OCA\Files_Extern ... {}, "show")
 6. /var/www/___/lib/private/AppFramework/App.php line 118
    dispatch(OCA\Files_Extern ... {}, "show")
 7. /var/www/___/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    main("OCA\\Files_Exte ... r", "show", OC\AppFramework\ ... {}, {id: "12",_route ... "})
 8. <<closure>>
    __invoke({id: "12",_route ... "})
 9. /var/www/___/lib/private/Route/Router.php line 297
    call_user_func(OC\AppFramework\ ... {}, {id: "12",_route ... "})
10. /var/www/___/lib/base.php line 987
    match("/apps/files_external/userstorages/12")
11. /var/www/__/index.php line 42
    handleRequest()

GET /index.php/apps/files_external/userstorages/12?testOnly=true
from ____ by aeronaut84 at 2019-03-10T08:05:40+00:00
NastuzziSamy commented 5 years ago

Do you still have that with the last version (0.3.0) ?

I tried on a fresh installation, no issues