skip to Main Content

Flutter – Exception has occurred. _ClientSocketException (ClientException with SocketException: Connection refused (OS Error: Connection refused, errno = 111)

My products.dart in models folder is : class Products { final String? id; final String? createdAt; final String? price; final String? name; final String? description; final String? color; final String? stock; final List<dynamic>? ordersList; const Products( {this.id, this.createdAt, this.price, this.name,…

VIEW QUESTION

Javascript – verifyToken in node js

verify Toekn error in node js i send token to post man but error found show in postman verify token are not verify in postman send error 401 const jwtEmail=req.body.email.split("@")[0] console.log(jwtEmail) const token=jwt.sign({user_data:email},jwtEmail,{ expiresIn:"24h" } ) const verifyToken=async(req,res,next)=>{ try {…

VIEW QUESTION

Javascript – Cannot read properties of undefined (reading 'split'), how to remove error in jwt token verify

const jwtEmail=req.body.email.split("@")[0] console.log(jwtEmail) const token=jwt.sign({user_data:email},jwtEmail,{ expiresIn:"24h" } ) const verifyToken=async(req,res,next)=>{ try { const token = req.header.authorization.split("")[0]; const user_data =await User.findOne({auth_token:token}) const jwtEmail = user_data.email.split("@")[0]; const decodedToken = jwt.verify(token,jwtEmail); next(); } catch (error) { return res.status(401).send({ message: "Auth failed", error });…

VIEW QUESTION

Mongodb – MongooseError: Operation `users.insertOne()` buffering timed out after 10000ms at Timeout. Error?

const mongoose = require("mongoose") mongoose.connect("mongodb://localhost:27017/testdb") const userSchema = new mongoose.Schema({ name : String, age : Number }) const User = mongoose.model("User", userSchema); const user1 = new User({name: "Jack", age: 24}); user1.save().then(() => console.log("User Saved")); I was trying to perform CRUD…

VIEW QUESTION
Back To Top
Search