Comments (4)
Unfortunately debugging that is pretty app-specific, since it means your app is either taking too long (say connecting to databases before, reading files etc) before listening on PORT
. Sometimes it can be as simple as forgetting to pass process.env.PORT
or perhaps passing it incorrectly to the server (if it expects a number instead of string for example).
from up.
Hey @tj
Increasing the timeout did fix a big chunk of the issue to make development a little bit easier than before. But the problem still occurs randomly; first fetch sometimes, immediately sometimes, sometimes it's really slow to respond, etc.
Since you mentioned connecting the database, what we use is a Prisma 1 server hosted on EC2. That Prisma server in turns connects to our RDS database. Do you think the issue might be related to these parts?
I just don't want this issue to come to the production server once I merge the code there. Anything else I could do to better debug this?
from up.
Locally it works perfectly fine though. So the requests passing through apigw and lambda run into unreported issue it seem.
from up.
For whoever struggles with this in the future, make sure to remove docker completely. You're welcome!
from up.
Related Issues (20)
- Up re-uses an URL despite being run on a different repo, what gives? HOT 2
- GLIBC_2.32 not found / CGO_ENABLED=0 HOT 4
- Support Apple M1 CPU HOT 6
- Support ES Modules with the nodejs14.x runtime
- [PRO] EOL: update warming runtime to nodejs14.x HOT 7
- Node.js AWS SDK V3 credential issue when using "profile" in up.json HOT 1
- Errors are reported in many lines
- AWS API Gateway is setting MIME type for Excel and Word to ZIP
- Remove old Lambda Version HOT 2
- Deployment Fails with "ResourceConflictException" in Lambda HOT 32
- Possible to statically serve up from root endpoint instead of /stage? HOT 1
- Up chooses ineligible certificate from acm
- Wiki link broken
- nodejs10.x is no longer supported HOT 3
- Luna
- Is apex up still a reliable, maintained deployment solution HOT 1
- 09371237653
- Passing SIGINT signals inside the application.
- Vulnerability of dependency "golang.org/x/net" HOT 1
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 up.