mean-contactlist's People
Forkers
sitepoint-editors mboeser tjfitzg maniacs-satm sandipdev stardrop9 agl745 dzmitrybudzko andipr22 diazrma front-dev zarko-tg thomasrag jasonerivera brendanfdmoore s3377913 haydenbi iaw-dcic michaelrobertbell csctwx darrenolson m1000tech01 notoriousnapper atoz-chevara alexlondon07 alexinnm mattydry b-area fodongkara johnworthley favorite-projects qamrain14 haggarwal90 arifseft tomb50 awsahmed krishan101090 janspants11 vvallabb viniciusbvilar pjstol lightyear9 degratnik 1kspears23 gaitonde fernandobelem augustinevt jukebx sandhiyarkrishna qtpeters batteries76 bharath-ui-dev sudheerkumar507 shashforce jce-il siddaram-hebbal travisc crishernandezmaps samipjain rjacquemin iggirex devhdr pedromonad vetaco bob0swager 35percent cathydomini jonathantsang jakerohr andmarkan scotmoor maranranu rokas01 sameerrathod webtwist stefanbuga pianohousecreations andieromero npborra bvpmiranda martincote1978 rushappdev raghucse2010 enterstudio gjohnrao mizanurl swapneelm cliftonh02 anguchelvan sadhal ferritt1975 dnguyen2015 mpayne10 fr3ed0m jjeandedieu nushibo widzer31 jpacheco2014 rle2016 kermitzhumean-contactlist's Issues
App crashes when invalid insert
I've just cloned this project and did nothing but establishing my mongodb_uri and then I wanted to try it locally. It works perfectly but when I make an insert (from the webpage) without any value for first and last name the server crashes and the insertion to mlab is made (empty fields). How do I prevent this?
This is the error I get:
ERROR: Invalid user input
/Users/nanop/Desktop/mean-contactlist/node_modules/mongodb/lib/utils.js:98
process.nextTick(function() { throw err; });
^
Error: Can't set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)
at ServerResponse.header (/Users/nanop/Desktop/mean-contactlist/node_modules/express/lib/response.js:719:10)
at ServerResponse.send (/Users/nanop/Desktop/mean-contactlist/node_modules/express/lib/response.js:164:12)
at ServerResponse.json (/Users/nanop/Desktop/mean-contactlist/node_modules/express/lib/response.js:250:15)
at /Users/nanop/Desktop/mean-contactlist/server.js:72:23
at /Users/nanop/Desktop/mean-contactlist/node_modules/mongodb/lib/collection.js:421:18
at handleCallback (/Users/nanop/Desktop/mean-contactlist/node_modules/mongodb/lib/utils.js:96:12)
at /Users/nanop/Desktop/mean-contactlist/node_modules/mongodb/lib/collection.js:726:5
at /Users/nanop/Desktop/mean-contactlist/node_modules/mongodb-core/lib/connection/pool.js:428:18
at nextTickCallbackWith0Args (node.js:433:9)
Delete an item, but item still exist until refresh
Deploy To Heroku Error
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.