Bug Unable to parse `access_token`

Discussion in '[bd] API' started by alfa1, Jan 10, 2018.

  1. alfa1

    alfa1 Webmaster

    Error Info
    XenForo_Exception: Unable to parse `access_token` from `{"error":"invalid_grant","error_description":"Authorization code doesn't exist or is invalid for the client","vwTemplateName":"DEFAULT"}` - library/bdApiConsumer/Helper/Api.php:39
    Generated By: Unknown Account, Jan 2, 2018
    Stack Trace

    #0 /library/bdApiConsumer/XenForo/ControllerPublic/Register.php(48): bdApiConsumer_Helper_Api::getAccessTokenFromCode(Array, 'dd487acd506ad11...', 'https://...')
    #1 /library/XenForo/FrontController.php(369): bdApiConsumer_XenForo_ControllerPublic_Register->actionExternal()
    #2 /library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #3 /index.php(13): XenForo_FrontController->run()
    #4 {main}

    Request State

    array(3) {
    ["url"] => string(127) "https://site.com/register/external?provider=xxx&code=xxx&state="
    ["_GET"] => array(3) {
    ["provider"] => string(5) "xxx"
    ["code"] => string(40) "xxx"
    ["state"] => string(0) ""
    }
    ["_POST"] => array(0) {
    }
    }
     
    Tags:
  2. alfa1

    alfa1 Webmaster

    https://www.vaultwiki.org/issues/5336/

    Unable to parse `access_token` - VaultWiki - Wiki for Forum Communities - Support

    VaultWiki, Wiki addon for vBulletin forums. Licensing and support site.
    vaultwiki.org
     
  3. xfrocks

    xfrocks XenForo rocks! Staff Member

    The API server returns that error if the auth code is expired. Normally auth code expires after 30 seconds but if your user internet connection is slow, you can increase that to one minute or longer in AdminCP > Options page. Please do not make it extremely long (e.g. 1 hour) because that will reduce server security.
     
    alfa1 likes this.
Loading...