Giter VIP home page Giter VIP logo

django-piston-oauth-example's People

Contributors

glogiotatidis avatar pix0r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

django-piston-oauth-example's Issues

TypeError at /oauth/request_token/

Hi,

In first place thanks for this example.

I'm playing with it an i got an error 500 when the script tries to request the token

localhost 8000
Traceback (most recent call last):
File "oauth_client.py", line 29, in
raise Exception("Invalid response %s." % resp['status'])
Exception: Invalid response 500.

Server logs looks like

09/Mar/2012 03:43:41] "GET /oauth/request_token/?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonce=45316354&oauth_timestamp=1331286221&oauth_consumer_key=testkey&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_signature=1qSb7WAJqLDPNvYK8Ql%2BZJKyrKM%3D HTTP/1.1" 500 90921

and opening that url in the browser I got

TypeError at /oauth/request_token/
character mapping must return integer, None or unicode
Request Method: GET
Request URL: http://127.0.0.1:8000/oauth/request_token/?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonce=70655149&oauth_timestamp=1331285442&oauth_consumer_key=testkey&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_signature=TNxewGWYY1lGVHgs5wycGyPBFEQ%3D
Django Version: 1.3.1
Exception Type: TypeError
Exception Value:
character mapping must return integer, None or unicode
Exception Location: /usr/lib/python2.7/hmac.py in init, line 72
Python Executable: /home/ctag/workspace_globalsense/django-piston-oauth-example/env/bin/python
Python Version: 2.7.1

Any idea ?

Thanks in advance!

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.