Coder Social home page Coder Social logo

Comments (2)

greglu avatar greglu commented on August 16, 2024

I cannot replicate this problem. Can you try again with the latest version of HBase (0.90.4)? I've updated the library to work with the newer version and I also replaced the HTTP client with Patron (instead of using net/http). Hopefully all the changes fixed your problem.

Please reopen this case if you're still having issues.

from hbase-stargate.

elizeu avatar elizeu commented on August 16, 2024

This is an old discussion, but the answer below might benefit others.

Short answer: Check whether the URL you are sending with your GET/POST request have only one sequence of '\r\n' characters in the end.

Longer answer: I found the behavior you descibe when sending an HTTP GET request using a URL that comes back from a POST request sent previously. For example, a POST is sent for Scanner creation, a URL is returned in the Location: field of the HTTP response.

As the response has '\r\n' at the end of each line of the HTTP message header. I was inadvertently using the value directly to send a GET request and appending another '\r\n' to the end of the GET line in the new header. So, the rest of the messages was skipped by the HBase REST server.

I hope it helps.

from hbase-stargate.

Related Issues (14)

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.