gpraveenonline / simple-linkedinphp

Automatically exported from code.google.com/p/simple-linkedinphp
0 stars 0 forks source link

Getting "Arrays not supported in headers" error #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set tuser token like this : $linkedin->setTokenAccess(array('oauth_token' => 
$token, 'oauth_token_secret' => ""));
2. Perform request to get user profile: $linkedin->profile("~");
3. get the error

What is the expected output? What do you see instead?

Expecting to get the user's profile. Instead get an error saying:

OAuth exception caught: Arrays not supported in headers.

#0 /www/APIO/library/linkedin/linkedin_3.2.0.class.php(1676): 
LinkedIn->fetch('GET', 'https://api.lin...')
#1 /www/APIO/module/Api/src/Api/Controller/AccountController.php(146): 
LinkedIn->profile('~:(id,first-nam...')
#2 
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Abstrac
tRestfulController.php(382): Api\Controller\AccountController->update('1', 
Array)
#3 [internal function]: 
Zend\Mvc\Controller\AbstractRestfulController->onDispatch(Object(Zend\Mvc\MvcEve
nt))
#4 
/www/APIO/vendor/zendframework/zendframework/library/Zend/EventManager/EventMana
ger.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#5 
/www/APIO/vendor/zendframework/zendframework/library/Zend/EventManager/EventMana
ger.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', 
Object(Zend\Mvc\MvcEvent), Object(Closure))
#6 
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Abstrac
tController.php(117): Zend\EventManager\EventManager->trigger('dispatch', 
Object(Zend\Mvc\MvcEvent), Object(Closure))
#7 
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Abstrac
tRestfulController.php(259): 
Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment
\Request), Object(Zend\Http\PhpEnvironment\Response))
#8 
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.p
hp(114): 
Zend\Mvc\Controller\AbstractRestfulController->dispatch(Object(Zend\Http\PhpEnvi
ronment\Request), Object(Zend\Http\PhpEnvironment\Response))
#9 [internal function]: 
Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#10 
/www/APIO/vendor/zendframework/zendframework/library/Zend/EventManager/EventMana
ger.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#11 
/www/APIO/vendor/zendframework/zendframework/library/Zend/EventManager/EventMana
ger.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', 
Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(30
9): Zend\EventManager\EventManager->trigger('dispatch', 
Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /www/APIO/public/index.php(21): Zend\Mvc\Application->run()
#14 {main}

What version of the product are you using? On what operating system?

Using version 3.2.0

Please provide any additional information below.

Original issue reported on code.google.com by arpy.van...@gmail.com on 9 Aug 2013 at 9:51