• Resolved owolter

    (@owolter)


    After creating an app, and setting it to Internal (Google Workspace user), I grant the plugin and then get this error under “Step 2: Root directory selection”:

    The Image and video gallery from Google Drive plugin has encountered an error. Error message:
    
    Unknown error.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Marek Dědič

    (@marekdedic)

    Hi,
    please update to 2.13.6, the issue should be fixed there.

    Thanks,
    Marek

    Thread Starter owolter

    (@owolter)

    That fixed it. Thanks Marek!

    Thread Starter owolter

    (@owolter)

    This is happening again, but hours after authenticating. The galleries are also saying “Unknown error” so it seems maybe the authentication is expiring after an hour or two?

    I’m only able to fix it temporarily by revoking and granting permission. That only lasts a few hours.

    • This reply was modified 2 years, 8 months ago by owolter.
    • This reply was modified 2 years, 8 months ago by owolter.
    Thread Starter owolter

    (@owolter)

    UPDATE: In debug mode, the error says “refresh token must be passed in or set as part of setAccessToken”

    And here’s the stack:

    #0 /html/wp-content/plugins/skaut-google-drive-gallery/class-api-client.php(116): Sgdg\Vendor\Google\Client->fetchAccessTokenWithRefreshToken()
    #1 /html/wp-content/plugins/skaut-google-drive-gallery/class-api-client.php(134): Sgdg\API_Client::get_authorized_raw_client()
    #2 /html/wp-content/plugins/skaut-google-drive-gallery/class-api-client.php(152): Sgdg\API_Client::get_drive_client()
    #3 /html/wp-content/plugins/skaut-google-drive-gallery/class-api-facade.php(87): Sgdg\API_Client::initialize_batch()
    #4 /html/wp-content/plugins/skaut-google-drive-gallery/admin/settings-pages/basic/root-selection/class-list-ajax-endpoint.php(132): Sgdg\API_Facade::get_drive_name()
    #5 /html/wp-content/plugins/skaut-google-drive-gallery/admin/settings-pages/basic/root-selection/class-list-ajax-endpoint.php(75): Sgdg\Admin\Settings_Pages\Basic\Root_Selection\List_Ajax_Endpoint::path_ids_to_names()
    #6 /html/wp-content/plugins/skaut-google-drive-gallery/helpers/class-helpers.php(42): Sgdg\Admin\Settings_Pages\Basic\Root_Selection\List_Ajax_Endpoint::ajax_handler_body()
    #7 /html/wp-content/plugins/skaut-google-drive-gallery/admin/settings-pages/basic/root-selection/class-list-ajax-endpoint.php(53): Sgdg\Helpers::ajax_wrapper()
    #8 /html/wp-includes/class-wp-hook.php(308): Sgdg\Admin\Settings_Pages\Basic\Root_Selection\List_Ajax_Endpoint::handle_ajax()
    #9 /html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #10 /html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #11 /html/wp-admin/admin-ajax.php(188): do_action()
    #12 {main}
    • This reply was modified 2 years, 8 months ago by owolter.
    Plugin Author Michal Janata

    (@kalich5)

    Solved by creating a new Google app and linking to the website

    Thread Starter owolter

    (@owolter)

    I can’t imagine why that worked Michal, considering I had just made the original app a few days ago. But yes it solved it. Thanks.

    Plugin Author Marek Dědič

    (@marekdedic)

    To be honest, we aren’t sure either. Google works in mysterious ways…

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Unknown error after authentication’ is closed to new replies.