Coder Social home page Coder Social logo

Comments (4)

jmchilton avatar jmchilton commented on July 21, 2024

Fascinating... any chance you can produce the Galaxy logs around the time of this error? The History and Dataset version are surprising similar - the Dataset version looks a little more complete - better documentation, more options, and using requests instead of urllib2 - so I would just use for the Dataset version in the IPython work for the time being if that is working.

I think we just need to update the history version to target the same code as the Dataset version in bioblend - but I would love to understand why urllib2 cannot handle this request but requests can.

from bioblend.

mvdbeek avatar mvdbeek commented on July 21, 2024

Sure, no problem, first one is for HistoryClient:

134.157.184.144 - - [19/Aug/2014:15:32:49 +0200] "GET /galaxy/api/histories/86ef4cf00f944e48/contents/a72a8d806d8884e1?key=xxx HTTP/1.1" 200 - "-" "python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-34-generic"
134.157.184.144 - - [19/Aug/2014:15:32:49 +0200] "GET /galaxy/a72a8d806d8884e1/display?to_ext=tabular HTTP/1.1" 404 - "-" "Python-urllib/2.7"

Second is for Dataset:

134.157.184.144 - - [19/Aug/2014:15:33:55 +0200] "GET /galaxy/api/datasets/a72a8d806d8884e1?hda_ldda=hda&key=xxx HTTP/1.1" 200 - "-" "python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-34-generic"
134.157.184.144 - - [19/Aug/2014:15:33:55 +0200] "GET /galaxy/datasets/a72a8d806d8884e1/display?to_ext=tabular HTTP/1.1" 200 - "-" "python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-34-generic"

Edit: ... so easy to leak my api key :D.

from bioblend.

jmchilton avatar jmchilton commented on July 21, 2024

Ahh - very illuminating this is a url joining bug - thanks!

from bioblend.

mvdbeek avatar mvdbeek commented on July 21, 2024

OK, it works with the patch, so I'm closing the issue! Thanks

from bioblend.

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.