I can't manage to authenticate, or so it seems. I've tried the feeds / feedsoauth / feeds_xmlparser modules on a server with the PECL installed, I was able to set things up perfectly, even authenticating with twitter. If I look in my database I find an entry in the feeds_oauth_access_tokens table.

Still when trying to parse an example of http://api.twitter.com/statuses/retweeted_by_me.xml I keep getting "Invalid protected resource url length". Any ideas on this?

Comments

infojunkie’s picture

As far as the PECL source code seems to indicate, this error occurs if the URL you're trying to access is empty. So make sure that the source URL you're entering in the feed node is not empty.

If it's not, then you need to debug a little:
* Install devel.module
* In function OAuthHTTPBatch::getRaw() (OAuthHTTPFetcher.inc line 32) insert the line

dsm($this->url);

right before

$access_token = call_user_func($this->authenticator, $this->uid, $this->site_id);

Now try to import the items again. What gets printed?

wza’s picture

Yes, this appears to be empty. I'm assuming this should be the http://api.twitter.com/oauth/request_token url right?

wza’s picture

hardcoding it kills the error, but still returns an empty array

infojunkie’s picture

No, this should be the resource URL (http://api.twitter.com/statuses/retweeted_by_me.xml in your case). Where did you set this URL?

wza’s picture

I tried overriding $this->url in the function just for testing purposes. didn't work tho'.

infojunkie’s picture

Status: Active » Closed (won't fix)

Closing old issue.