News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorna Mitchell's Blog:
Invalid Protected Resource URL in pecl_oauth
April 12, 2011 @ 10:16:03

In a quick post to her blog today, Lorna Mitchell talks about an issue with pecl_outh tat came up during her development of a new API. A strange fatal error message was breaking her connection.

I'd gone through all the handshaking steps, got the acces token and was ready to start talking to the service itself. However when I tried to call OAuth::fetch, I got an error message: Fatal error: Uncaught exception 'OAuthException' with message 'Invalid protected resource url, unable to generate signature base string'

As it turns out, the issue was obscure - the address she was connecting to was missing a training slash (http://api.localhost versus http://api.localhost/) and it was causing the OAuth fetch to fail (apparently undocumented). If you're interested in some of the other things that have come up in her work with OAuth on the project, see here.

0 comments voice your opinion now!
pecloauth oauth api protected resource url fatal error


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Writing A Simple Twitter Client Using the PHP Zend Framework's OAuth Library

Matthew Weier O'Phinney's Blog: A Simple Resource Injector for ZF Action Controllers

PHPit.net: How to handle those pesky errors in PHP

Sara Goleman\'s Blog: What the heck is TSRMLS_CC anyway?

Stefan Mischook's Blog: Turning on display_errors in WAMP - Video Tutorial


Community Events





Don't see your event here?
Let us know!


podcast deployment framework language tips introduction library package install voicesoftheelephpant series release symfony laravel community opinion api zendserver interview bugfix

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework