pranansh-s / catchtheshow Goto Github PK
View Code? Open in Web Editor NEWNodejs Express REST API for next-episode.net
Nodejs Express REST API for next-episode.net
When the user hits request at catchtheshow.herokuapp.com/api/:id
with a wrong/invalid id of a show, the server crash most of the time, and the service become unavailable.
It throws this error in my local machine -
node:_http_outgoing:576
throw new ERR_HTTP_HEADERS_SENT('set');
^
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:372:5)
at ServerResponse.setHeader (node:_http_outgoing:576:11)
at ServerResponse.header (catchTheShow\node_modules\express\lib\response.js:771:10)
at ServerResponse.contentType (catchTheShow\node_modules\express\lib\response.js:599:15)
at Request._callback (catchTheShow\api\webScraper.js:140:9)
at Request.self.callback (catchTheShow\node_modules\request\request.js:185:22)
at Request.emit (node:events:527:28)
at Request.<anonymous> (catchTheShow\node_modules\request\request.js:1154:10)
at Request.emit (node:events:527:28)
at IncomingMessage.<anonymous> (catchTheShow\node_modules\request\request.js:1076:12) {
code: 'ERR_HTTP_HEADERS_SENT'
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.