Comments (8)
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.
@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.
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.
#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.
That could be the case, does it seem like there's an infinite loop somewhere halting everything?
from skyhook.
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.
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.
Agreed 👍 Going to close this out then while we monitor, since the site is back
from skyhook.
Related Issues (20)
- sends this error when added a comment to Issue HOT 1
- Support for IFTTT
- Bitbucket provider does not always work, getting status 500 errors HOT 2
- Error Integrate with jira when comment HOT 5
- Heroku release showing undefined for app name HOT 1
- Support for hosting on `non root URL` HOT 11
- App Center support HOT 2
- Azure DevOps support HOT 1
- Enable strict mode. HOT 1
- [Discussion] Microsoft Teams Support
- BitBucket rejected event of 'Pull Request: Request Change' with 502. HOT 4
- Pingdom check name not included in discord HOT 4
- WeKan support
- Jira updated - changelog on status HOT 1
- Skyhook Error HOT 1
- Skyhook Error
- Docker manifests cause extra webhooks to be pushed
- Rollbar error HOT 1
- Zendesk support
- Support for Zoho Assist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skyhook.