Giter Club home page Giter Club logo

getting-started's People

Contributors

asvetlik avatar codysoyland avatar jaffee avatar linhvo avatar travisturner avatar yuce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

getting-started's Issues

python example does not work as headers are not set in client.__http_request()

Hi I ran into trouble running the getting started example because of the following:

Calling client.status() failed with the following error:

>>> client.status()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Users/gireeshramji/PycharmProjects/getting-started/python/venv/lib/python2.7/site-packages/pilosa/client.py", line 188, in status
    client_response=Client.__ERROR_CHECKED_RESPONSE)
  File "/Users/gireeshramji/PycharmProjects/getting-started/python/venv/lib/python2.7/site-packages/pilosa/client.py", line 320, in __http_request
    raise PilosaError("Server error (%d): %s" % (response.status, content))
PilosaError: Server error (406): JSON only acceptable response

Calling client._Client__client.request without headers also fails:

r = client._Client__client.request("GET",uri)
r.status
406

Calling client._Client__client.request with 'Accept':'application/json' succeeds

r = client._Client__client.request("GET",uri,headers = {'Accept':'application/json'})
r.status
200

Sounds like the default header in the __http_request method needs to be changed from None to {"Accept":"application/json"}?

Unable to download `language.txt` in the Chapiter `Getting Started`

What's going wrong?

The download link(https://raw.githubusercontent.com/pilosa/getting-started/master/language.txt) returns not found response.
The tutorial website is https://www.pilosa.com/docs/latest/getting-started/.
image

What was expected?

It should be a .txt file with the content of language.

Steps to reproduce the behavior

Just open the download url and a not found response returns.

Information about your environment (OS/architecture, CPU, RAM, cluster/solo, configuration, etc.)

MacOS, Chrome
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36

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.