Duplicate Connected account request error (linkedin)

alfaNova

Well-known member
Affected version
2.3
Hello,

I have started to receive the following server error since yesterday. I guess people haven't try to connect their LinkedIn account since I upgraded to 2.3

Code:
Server error log
XF\ConnectedAccount\Http\HttpResponseException: Connected account request error (linkedin): Failed to request resource. HTTP Code: 403 src/XF/ConnectedAccount/Http/Client.php:67
Generated by: Unknown account 14 Apr 2025 at 23:58

Stack trace
#0 src/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(175): XF\ConnectedAccount\Http\Client->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), NULL, Array, 'GET')
#1 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(101): OAuth\OAuth2\Service\AbstractService->request('/me?projection=...', 'GET')
#2 src/XF/ConnectedAccount/ProviderData/LinkedinProviderData.php(14): XF\ConnectedAccount\ProviderData\AbstractProviderData->requestFromEndpoint('id')
#3 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(180): XF\ConnectedAccount\ProviderData\LinkedinProviderData->getProviderKey()
#4 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(201): XF\ConnectedAccount\ProviderData\AbstractProviderData->offsetGet('provider_key')
#5 src/XF/Repository/ConnectedAccountRepository.php(99): XF\ConnectedAccount\ProviderData\AbstractProviderData->__get('provider_key')
#6 src/XF/Pub/Controller/RegisterController.php(336): XF\Repository\ConnectedAccountRepository->associateConnectedAccountWithUser(Object(SV\ContactUsThread\XF\Entity\User), Object(XF\ConnectedAccount\ProviderData\LinkedinProviderData))
#7 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\RegisterController->actionConnectedAccountRegister(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'ConnectedAccoun...', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\RegisterController), NULL)
#9 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\RegisterController), NULL)
#10 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#12 src/XF.php(806): XF\App->run()
#13 index.php(23): XF::runApp('XF\\Pub\\App')
#14 {main}

Request state
array(4) {
  ["url"] => string(46) "/register/connected-accounts/linkedin/register"
  ["referrer"] => string(71) "https://www.cevremuhendisleri.net/register/connected-accounts/linkedin/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(13) {
    ["_xfToken"] => string(8) "********"
    ["username"] => string(11) "ErdemAnalı"
    ["email"] => string(20) "analierdem@gmail.com"
    ["dob_month"] => string(1) "8"
    ["dob_day"] => string(2) "18"
    ["dob_year"] => string(4) "1998"
    ["custom_fields"] => array(5) {
      ["ikamet"] => string(12) "il_eskisehir"
      ["ueniversite"] => string(16) "eskisehir_teknik"
      ["firma"] => string(2) " ."
      ["gender"] => string(4) "male"
      ["uzmanlik_alanlari"] => array(1) {
        [0] => string(0) ""
      }
    }
    ["accept"] => string(1) "1"
    ["_xfRedirect"] => string(137) "https://www.cevremuhendisleri.net/konu/%C3%87evre-m%C3%BChendisi-dan%C4%B1%C5%9Fman%C4%B1-bir-tesiste-ad%C4%B1m-ad%C4%B1m-ne-yapar.21369/"
    ["timezone"] => string(13) "Europe/Moscow"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(38) "/register/connected-accounts/linkedin/"
  }
}

I want to share my LinkedIn settings as well. But basically, I had created a LinkedIn app at the developer account, and entered the necessary information into the admin panel.
 
I have been still receiving this error. Is this a bug or am I doing something wrong? I haven't changed anything after 2.2 and it was working perfect in 2.2
 
Same here with all connected accounts. Here's another thread about it.
 
It seems support regarding connected accounts is very slim to none. I've seen countless threads about this before with almost no interaction from XenForo.

I had the same issue from A to B that I worked out yesterday. But when I want to set it up from B to A, it still gives me errors, while everything is like it's supposed to be, including the htaccess changes.

It's so easy to setup, yet it gives errors we can't fully comprehend. And without any decent documentation or support, it's like fighting against a wall.
 
It seems support regarding connected accounts is very slim to none.
I replied directly in the canonical bug report:


The gist of it is most of these errors are just noise and actually not indicative of real problems with using connected accounts.
 
Back
Top Bottom