check email in mongodb

25 views
Skip to first unread message

manpreet gill

unread,
May 23, 2015, 3:17:31 AM5/23/15
to node...@googlegroups.com
http://127.0.0.1:1880/emailCheck?email={{email}}
In this code used in http request node but it can't proper work

Nicholas O'Leary

unread,
May 23, 2015, 3:29:41 AM5/23/15
to node...@googlegroups.com

You need to provide more information if you want our help.


On Sat, 23 May 2015 08:17 manpreet gill <manpreet...@gmail.com> wrote:
http://127.0.0.1:1880/emailCheck?email={{email}}
In this code used in http request node but it can't proper work

--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

manpreet gill

unread,
May 23, 2015, 3:39:17 AM5/23/15
to node...@googlegroups.com
i have send the clipboard

[{"id":"5ad460ef.a52ba","type":"mongodb","hostname":"127.0.0.1","port":"27017","db":"shipping","name":""},{"id":"669489da.996b78","type":"http in","name":"","url":"/registration","method":"post","x":95.55554962158203,"y":82.22221636772156,"z":"4953787c.b6ac88","wires":[["5a70238c.a58fdc"]]},{"id":"9fc46e61.603b9","type":"http request","name":"","method":"GET","ret":"obj","url":"http://127.0.0.1:1880/emailCheck?email={{email}}","x":534.5555419921875,"y":85.55554389953613,"z":"4953787c.b6ac88","wires":[["a81492b0.57eb7"]]},{"id":"5a70238c.a58fdc","type":"change","name":"","rules":[{"t":"set","p":"email","to":"msg.payload.email"}],"x":292.55554962158203,"y":82.22221636772156,"z":"4953787c.b6ac88","wires":[["ac100668.53eff8"]]},{"id":"a81492b0.57eb7","type":"switch","name":"","property":"payload.status","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","outputs":2,"x":386.55554962158203,"y":232.22221636772156,"z":"4953787c.b6ac88","wires":[["c9793e3d.3686c"],["d63b29c4.29c4d8","8d2b6ce4.72d49"]]},{"id":"c9793e3d.3686c","type":"function","name":"Set Body & Status Code","func":"msg.payload={status:false,message:'Email Already Exist'};\nmsg.statusCode=200;\nreturn msg;","outputs":1,"valid":true,"x":608.555549621582,"y":180.22221636772156,"z":"4953787c.b6ac88","wires":[["17279d23.e8d863"]]},{"id":"d63b29c4.29c4d8","type":"function","name":"Set Body & Status Code","func":"msg.payload={status:true};\nmsg.statusCode=200;\nreturn msg;","outputs":1,"valid":true,"x":601.555549621582,"y":332.22221636772156,"z":"4953787c.b6ac88","wires":[["fd42b0e5.02bd5"]]},{"id":"66c78480.99387c","type":"http response","name":"","x":821.555549621582,"y":216.22221636772156,"z":"4953787c.b6ac88","wires":[]},{"id":"ce72700f.318d9","type":"http response","name":"","x":815.555549621582,"y":329.22221636772156,"z":"4953787c.b6ac88","wires":[]},{"id":"fd42b0e5.02bd5","type":"change","name":"","action":"delete","property":"headers","from":"","to":"","reg":false,"x":710.555549621582,"y":405.22221636772156,"z":"4953787c.b6ac88","wires":[["ce72700f.318d9"]]},{"id":"17279d23.e8d863","type":"change","name":"","rules":[{"t":"delete","p":"headers"}],"x":668.555549621582,"y":265.22221636772156,"z":"4953787c.b6ac88","wires":[["66c78480.99387c"]]},{"id":"e26f8724.1d9078","type":"mongodb out","mongodb":"5ad460ef.a52ba","name":"MongoDb Insert","collection":"user","payonly":true,"upsert":false,"multi":false,"operation":"insert","x":469.55554962158203,"y":448.22221636772156,"z":"4953787c.b6ac88","wires":[]},{"id":"ac100668.53eff8","type":"change","name":"","rules":[{"t":"set","p":"insert","to":"msg.payload"}],"x":346.55554962158203,"y":147.22221636772156,"z":"4953787c.b6ac88","wires":[["9fc46e61.603b9"]]},{"id":"8d2b6ce4.72d49","type":"function","name":"","func":"msg.payload=msg.insert;\nmsg.payload.createtime=new Date().getTime();\nreturn msg;","outputs":1,"valid":true,"x":324.55554962158203,"y":353.22221636772156,"z":"4953787c.b6ac88","wires":[["e26f8724.1d9078"]]}]

Nicholas O'Leary

unread,
May 23, 2015, 3:55:07 AM5/23/15
to Node-RED Mailing LIst
Manpreet,

how, exactly, are you triggering your /registration http node?

what, exactly, are you seeing happen? You say it doesn't work... how so?

Nick

--

Julian Knight

unread,
May 23, 2015, 7:19:31 AM5/23/15
to node...@googlegroups.com
Also exactly what is serving up the emailCheck web service? Presumably some other part of the flow? Are you getting anything when that flow is triggered? if so, what?

manpreet gill

unread,
May 23, 2015, 8:18:18 AM5/23/15
to node...@googlegroups.com
thanks
nick


On Saturday, May 23, 2015 at 12:47:31 PM UTC+5:30, manpreet gill wrote:
Reply all
Reply to author
Forward
0 new messages