Giter Site home page Giter Site logo

Comments (8)

dscalzi avatar dscalzi commented on May 18, 2024 1

The site is offline, not sure why. Will need @Jawnnypoo to check it out. Unsure if it's something internal crashing the site or if it is an issue with glitch.me.

from skyhook.

Jawnnypoo avatar Jawnnypoo commented on May 18, 2024

@dscalzi I think what is happening as far as I can tell is that if skyhook encounters an uncaught exception, it stops running, and then we start getting the 504 gateway errors, presumably because Glitch.com is attempting to direct traffic our way, and the server has ceased running, so it is 504ing. Do you know if there is a good solution to this? Presumably we could try to eliminate all errors, but it could happen for a number of reasons, and it would be hard to catch everything. Any ideas?

from skyhook.

dscalzi avatar dscalzi commented on May 18, 2024

Hmm, 19de4ca should have fixed this issue for provider exceptions as they are caught and the program should continue as normal. Is the specific issue originating from a provider or from the server.js?

It's unlikely that catching an issue halts the program, but I'll check out that possibility anyway.

Edit: yea the try catch for the provider parse does not seem to halt the program. I just put in an artifical error onto my local copy in one of the providers and attempted to recieve a payload. The error was caught and printed to the console without affecting anything. Subsequent requests were still accepted and parsed fine.

Is this issue coming from outside a provider then?

from skyhook.

Jawnnypoo avatar Jawnnypoo commented on May 18, 2024

#57 seems to be missing that try/catch, since it is having errors in the body parsing itself. I am not entirely sure that that is the issue causing the site to become unresponsive though. It could also be that we are attempting to parse a webhook and suspending things and never returning, or something more along those lines. Maybe we can add some timeouts on parsing the payloads in case that is what is happening?

from skyhook.

dscalzi avatar dscalzi commented on May 18, 2024

That could be the case, does it seem like there's an infinite loop somewhere halting everything?

from skyhook.

Jawnnypoo avatar Jawnnypoo commented on May 18, 2024

Well, we are calling await here https://github.com/Commit451/skyhook/blob/master/server.js#L82
which could have the chance of getting stuck somewhere. Not sure if that would cause the server to become unresponsive though, because I think node is built in a way where it would just continue to service requests.

Nonetheless, I am going to add an uptime monitor to the site so that I can restart it if it goes down as a temporary solution.

from skyhook.

dscalzi avatar dscalzi commented on May 18, 2024

It's probably also best to log out what provider + function is being called each time we get a request for the next week or so at least. This is just so that we can see what was sent immediately before it crashed. With no logging we are largely in the dark.

from skyhook.

Jawnnypoo avatar Jawnnypoo commented on May 18, 2024

Agreed 👍 Going to close this out then while we monitor, since the site is back

from skyhook.

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.