Skip to content


Error when trying to run the test_oauth_client.js #16

sanjib75 opened this Issue · 2 comments

3 participants



When I try to run node test_oauth_client.js, everyhting starts up fine.
$ node test_oauth_client.js

24 Oct 23:08:04 - oauth : { _requestUrl: 'http://localhost:3000/oauth/request_token'
, _accessUrl: 'http://localhost:3000/oauth/access_token'
, _consumerKey: 'JiYmll7CX3AXDgasnnIDeg'
, _consumerSecret: 'mWPBRK5kG2Tkthuf5zRV1jYWOEwnjI6xs3QVRqOOg'
, _version: '1.0A'
, _authorize_callback: 'http://localhost:3000/oauth/callback'
, _signatureMethod: 'HMAC-SHA1'
, _nonceSize: 32
, _headers:
{ Accept: '/'
, Connection: 'close'
, 'User-Agent': 'Node authentication'

But when I try to access it thro URL, it gives me this in the URL value

And I see in my logs
{ lastAccess: 1287958084173
, oauth_token_secret: undefined

What am I missing here? I am trying to be an oauth provider for my site.



Hmm, I'm not sure that test_client, is paired with the test_server in the examples folder, can you give me more details ?


I have seen alot of this and there needs to be some better error messages to help us out here i think. maybe a debug mode that would throw a stack in such a case. At any rate i had this happened in my oAuth provider because i neglected to place the body parser above the auth section of the express.createServer call, moving the bodyparser to come before auth fixed it for me in one case. Im now seeing this problem now that I put an nginx proxy infront of things... ugh soo hard to debug :-(

Im also using the following to setup routes, im wondering if this is the culprit?

app.configure(function() {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.