GithubHelp home page GithubHelp logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
most definitely, yes
i will look into this

Original comment by [email protected] on 12 Feb 2010 at 6:54

  • Changed state: Accepted

from pydelicious.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
sorry i need some more info, cannot reproduce this.

Ìnvalid password and username produce a "PyDeliciousUnauthorized: Check 
credentials.", triggered by the not unexpected 401 in this case. 
The 0.5.0 dist raises "PyDeliciousException: HTTP Error 401: Unauthorized"

There is no reason you should be throttled while you haven't even downloaded 
data so 
I have little clue as to what else may be wrong. 503 does mean ofcourse Service 
Unavailable, i don't know what other situations delicious.com may serve it.

Original comment by [email protected] on 12 Feb 2010 at 7:08

  • Changed state: Invalid

from pydelicious.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Here's the traceback leading up to the error:
http://pastebin.com/f23dce8d2

And here's the relevant code that tries to post to Delicious:
http://pastebin.com/f29387894

Hope that helps figuring out what's wrong. From the traceback I can clearly see 
that a 
bad authorisation attempt happens first and after it's retried a Throttled 
error comes 
back.

Far as I can tell we're using the latest version of pydelicious; from the 
read-only svn 
checkout.

Original comment by [email protected] on 13 Feb 2010 at 7:38

from pydelicious.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
[deleted comment]

from pydelicious.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
[deleted comment]

from pydelicious.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Agreed, but that code is in urllib2. So at the HTTP level, unless some funny 
headers 
get send I don't understand the 503.

Does pydelicious work normally otherwise? It still appears you get a 503 from 
http:api.del.icio.us, not from pydelicious. Does it log in with correct 
credentials?

From the trace; urllib2 is retrying the HTTP basic auth upon 401, delicious 
then 
decides to serve 503, pydelicious assumes this is a throttled response.

This seems to be the same behaviour as in my 2.5.1 setup,
here is an invalid password stacktrace: http://pastebin.com/m28263da6

It looks like del.icio.us is serving a 503 nonetheless. Perhaps you can debug 
HTTP 
response headers to confirm.

btw, this is in SVN but used 0.5.0 to check previous behaviour.

Original comment by [email protected] on 13 Feb 2010 at 9:36

from pydelicious.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Is it possible that when urllib2 retries authentication Delicious then 
throttles this 
request because it happens within the same second?

Which leads me to wondering, is it possible to tell urllib not to retry 
authentication?

Original comment by [email protected] on 14 Feb 2010 at 8:38

from pydelicious.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
1. I dont' know, perhaps, you'd have to confirm that yourself by running a 
test. 
Perhaps writing the same HTTP GET with Basic auth to a socket twice. If so, 
please 
post any (relevant) headers.
2. I would hope so but have not found out how. You might figure out which 
opener-
handler is causing this, subclass this Handler and override some method, and 
then pass 
that to the build_opener.

Original comment by [email protected] on 15 Feb 2010 at 8:59

from pydelicious.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024

Original comment by [email protected] on 21 Nov 2010 at 1:54

  • Changed state: WontFix

from pydelicious.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.