Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

HTTP Errors

3 views
Skip to first unread message

bshah

unread,
Mar 25, 2011, 3:04:31 PM3/25/11
to SEOmoz API
Hi,

I've been playing around with the API and successfully pulled url-
metrics/ data. However with the same set of URLs sometimes I am
getting errors and other times I am not. I have not changed my code so
I'm not sure the cause of the errors:

>>> request = urllib2.Request("http://lsapi.seomoz.com/linkscape/url-metrics/" + urllib2.quote(URL) + "?AccessID=" + ACCESS_ID + "&Expires=" + str(EXPIRES) + "&Signature=" + binary_signature)
>>> fetch=urllib2.urlopen(request)

HTTPError: HTTP Error 500: Internal Server Error

>>> request = urllib2.Request("http://lsapi.seomoz.com/linkscape/url-metrics/" + urllib2.quote(URL) + "?AccessID=" + ACCESS_ID + "&Expires=" + str(EXPIRES) + "&Signature=" + binary_signature)
>>> fetch=urllib2.urlopen(request)

HTTPError: HTTP Error 401: Unauthorized

Any ideas of where these errors are coming from?
Reply all
Reply to author
Forward
0 new messages