API works in postman but not in react front end
I am trying to make an app with the MERN Stack and have run into an issue. My app allows a "create profile" and "edit profile" component that uses the same API route since its a post request that has…
I am trying to make an app with the MERN Stack and have run into an issue. My app allows a "create profile" and "edit profile" component that uses the same API route since its a post request that has…
I'm trying to log my data from my bot and I use this script: bot.use((ctx, next) => { console.log(ctx.from); if(ctx.updateSubTypes[0] == "text") { bot.telegram.sendMessage(-4..5, "@" + ctx.from.username + " said: " + ctx.message.text) } else { bot.telegram.sendMessage(-4..5, "@" + ctx.from.username…
I'm trying to connect my NodeJS application to my remote MySQL Database, but it keeps giving me a 1045 error ('ER_ACCESS_DENIED_ERROR'). From the same workstation, I can connect to the same database through MySQL Workbench perfectly fine. This leads me…
I've been doing a lot of online courses with node and express. I want to get sockets.io to work but I can't even establish a connection at the moment. I am using a cPanel virtual private server and running code…
I try to create web app with react,redux and node where i can create and edit profile data , I have one function control both situation so when i create it work fine but when i edit it give me…
I'm trying to add Log4js-Node to a Node.js server running on Apache. Here's my code: const path = require("path"); const express = require("express"); const log4js = require('log4js'); const app = express(); const logger = log4js.getLogger(); logger.level = "debug"; const port…
i'm creating app that integrates Angular 8 and NodeJS as orderer for paypal. I'm wondering how to get all items that i send to transaction. For example this is my createOrder object: request.requestBody({ intent: 'CAPTURE', purchase_units: [{ amount: { value:…
I'm using redis and nodejs for the first time, without success. Trying to loop insert data but got an empty array. const redis = require("redis"); const client = redis.createClient({ retry_strategy: function(options) { if (options.error && options.error.code === "ECONNREFUSED") { //…
I'm using ioRedis node package for connecting my node js application to redis server which is secured by TLS. Redis version I'm using is Redis 6.0. My server is running fine with the certificates but while connecting from node application…
I am using laravel api as a backend and vue as a front end. These are standalone projects. When I am hitting the api which publishes after redis connection like $redis = Redis::connection(); $redis->publish('new_message_sent',json_encode($request->all())); It does not do anything. Infact…