^ "silvia@longbowstaff.com"
^ "Processing 4 contacts... "
{"data":{"status":401},"included":[]} (500 Internal Server Error)

Symfony Exception

Exception

HTTP 500 Internal Server Error

{"data":{"status":401},"included":[]}

Exception

Exception

  1.                 $this->entityManager->persist($this->account);
  2.                 $this->entityManager->flush();
  3.                 if (!$retry) {
  4.                     throw new \Exception(json_encode($response['content']));
  5.                 }
  6.             } elseif ($this->account
  7.                 && $response['code'] == 403
  8.                 && $response['content']['data']['code'] == 'SALES_SEAT_REQUIRED'
ApiWrapper->getApiResponse() in src/Utils/Api/Linkedin/ApiWrapper.php (line 666)
  1.         $content $this->getApiResponse(
  2.             $url '?' $requestData,
  3.             [],
  4.             null,
  5.             'getCurl'
  6.         );
  7.         if (empty($content['data']['results']) || empty($content['included'])) {
  8.             throw new \Exception(json_encode($content['data'], JSON_UNESCAPED_UNICODE));
  9.         }
ApiWrapper->getContactData() in src/Manager/ContactManager.php (line 870)
  1.         }
  2.         dump('Processing ' count($ids) . ' contacts... ');
  3.         try {
  4.             $response $this->linkedinApi->getContactData($ids);
  5.             dump('All ' count($ids) . ' contacts are valid');
  6.             return [$ids$response];
  7.         } catch (\Exception $exception) {
  8.             if (strpos($exception->getMessage(), '400') === false) {
ContactManager->processPeople() in src/Manager/ContactManager.php (line 810)
  1.     {
  2.         $people = [];
  3.         $this->linkedinApi->setAccount($account);
  4.         $ids array_filter($ids);
  5.         [$validIds$response] = $this->processPeople($account$ids);
  6.         if (!empty($validIds)) {
  7.             $invalidIds array_diff($ids$validIds);
  8.             dump('Deactivating contacts'$invalidIds);
  9.             $this->deactivateContacts($invalidIds);
ContactManager->updatePeople() in src/Controller/MainController.php (line 468)
  1.         $result $contactManager->updatePeople(
  2.             $enrichmentAccount,
  3.             ['ACwAAARGtlYBoGcux-A-IHh6JHAhNPZPxmdr1_0''ACwAAAFvQTAByuHXU7JsMMztK-h7osgYIEyZryw''ACwAAAFvQTAByuHXU7JsMMztK-h7osgYIEyZ''ACwAAAFvQTAByuHXtK-h7osgYIEyZryw'],
  4.             'snIdentifier',
  5.             []
  6.         );
  7.         dump($result);
  8.         die();
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 36)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

No log messages

Stack Trace

Exception

Exception:
{"data":{"status":401},"included":[]}

  at src/Utils/Api/Linkedin/ApiWrapper.php:908
  at App\Utils\Api\Linkedin\ApiWrapper->getApiResponse()
     (src/Utils/Api/Linkedin/ApiWrapper.php:666)
  at App\Utils\Api\Linkedin\ApiWrapper->getContactData()
     (src/Manager/ContactManager.php:870)
  at App\Manager\ContactManager->processPeople()
     (src/Manager/ContactManager.php:810)
  at App\Manager\ContactManager->updatePeople()
     (src/Controller/MainController.php:468)
  at App\Controller\MainController->terms()
     (vendor/symfony/http-kernel/HttpKernel.php:159)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:36)