Coder Social home page Coder Social logo

timeouts with 1.11.1 about node-openid-client HOT 4 CLOSED

panva avatar panva commented on May 18, 2024
timeouts with 1.11.1

from node-openid-client.

Comments (4)

panva avatar panva commented on May 18, 2024

exactly what error console.log(error) are you getting?. I did update the major version of got dependency but its timeout option remained unchanged, if anything it got fixed for more scenarios. API should remain unchanged, else i wouldn't have released it - semver.

from node-openid-client.

ppvolto avatar ppvolto commented on May 18, 2024

Tested aganst your node-oidc-provider-example with a local setup on a different mashine
when timeout less then 5100 then i get this:

RequestError: Request timed out
    at timeoutFn (<PROJECT>/server/node_modules/got/index.js:131:53)
    at asPromise (<PROJECT>/server/node_modules/got/index.js:134:9)
    at got (<PROJECT>/server/node_modules/got/index.js:386:10)
    at Function.got.(anonymous function) [as get] (<PROJECT>/server/node_modules/got/index.js:404:31)
    at Object.get (<PROJECT>/server/node_modules/openid-client/lib/http.js:14:14)
    at Function.discover (<PROJECT>/server/node_modules/openid-client/lib/issuer.js:191:28)

I hope it helps in a way...

from node-openid-client.

panva avatar panva commented on May 18, 2024

I just verified the timeout option works as intended.

By introducing a delay in my OP responses i was able to get "RequestError: Request timed out" as intended and then, by setting Issuer.defaultHttpOptions = { timeout } to an appropriate value, i was getting to my OP responses again.

Closing for a) lack of feedback from the original poster, b) not able to reproduce.

from node-openid-client.

zackarychapple avatar zackarychapple commented on May 18, 2024

@panva apologies for taking so long to get back, was tied up with other issues. I plan to try upgrading again next week.

from node-openid-client.

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.