GithubHelp home page GithubHelp logo

Comments (7)

elsmorian avatar elsmorian commented on August 25, 2024

How would I go about changing the connection type?

from node-oauth.

crcn avatar crcn commented on August 25, 2024

Change "close" to "keep-alive" on lines 28, and 46 in lib/oauth.js. Here's the fix: https://gist.github.com/1063403

from node-oauth.

danmactough avatar danmactough commented on August 25, 2024

I saw this same error. Spiceapps's fix worked for Google. Didn't test with any other provider.

Thanks, Spiceapps.

from node-oauth.

TooTallNate avatar TooTallNate commented on August 25, 2024

I am experiencing this as well trying to access Blogger's APIs. A proper bugfix release would be much appreciated! We'd rather not have to maintain a fork ourselves.

from node-oauth.

danmactough avatar danmactough commented on August 25, 2024

I don't actually think a patch is needed. It's a configurable setting when you create a new OAuth.
var oa = new OAuth { requestUrl,
accessUrl,
consumerKey,
consumerSecret,
version,
authorize_callback,
signatureMethod,
nonceSize,
{"Accept" : "/",
"Connection" : "keep-alive",
"User-Agent" : "Node authentication"});

from node-oauth.

ciaranj avatar ciaranj commented on August 25, 2024

Fwiw, you can configure around this as @danmactough says... also I believe it to be an issue with the current versions of node.js are you sure it isn't an example of : nodejs/node-v0.x-archive#728 ? (Closing for now.. will re-open it if required :) )

from node-oauth.

kevliu avatar kevliu commented on August 25, 2024

I was able to configure around Google not sending end() by passing { "Connection" : "keep-alive" } as the last argument to the OAuth client creation function-- using the Accept header as @danmactough posted resulted in an HTTP 406 when communicating with the Blogger endpoints.

from node-oauth.

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.