394 questions
0
votes
0
answers
32
views
Cart ui not loading data after reload although data are in local storage
I'm encountering an issue where a cart UI isn't loading data after a reload, even though the data is stored in local storage. I'm stranded on this can one help me on this have tried troubleshooting ...
0
votes
2
answers
45
views
I cannot pass the files to my API using multer
I'm trying to implement a system for uploading photos for a car listing project that I'm building. I'll be honest, this is the first time using multer and I can't find what is wrong with it. I've been ...
0
votes
1
answer
175
views
Deployed site on Render not retrieving data from MongoDB
I'm currently working on part 3c, Saving Data to MongoDB. My phonebook app is able to fetch data from the MongoDB database while on the local server in development mode, but not while on the Render ...
1
vote
0
answers
27
views
i am failing to register a user in my school management project i keep getting a bad request
I don't know if something is wrong with my code
@api_view(['POST'])
def sign_up(request):
user_serializer = UserSerializer(data=request.data)
if user_serializer.is_valid():
user = user_serializer....
0
votes
2
answers
127
views
MERN app logout problem, cookie is not deleting
I am working on a MERN app. The app is working well on the localhost, both client and server. I deployed the app with some production environment changes like CORS, etc. I have solved many errors in ...
0
votes
0
answers
31
views
How do you modify databases in a webapp that is already running & constantly modified? Especially in a team environment?
How do you work on existing web app databases that constantly get modified in realtime
Let's assume you have a react application with postgres as your database. The App is an ecommerce website that ...
0
votes
0
answers
86
views
MasterCard Token Fetch Error with ReactJs Frontend
I'm trying to fetch my token from this endpoint on mastercard (https://api.finicity.com/aggregation/v2/partners/authentication) from my react app and I keep getting the error
"ccess to fetch at '...
0
votes
0
answers
50
views
Why is my page either not loading anything or giving me Template does not exist error? Django-React integration
[The templates section in settings.py]
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'backend', 'dist')],
'...
0
votes
0
answers
107
views
Writing terminal emulator in react, and ls command is not working in subfolder in root folder
I am trying to write a terminal emulator in a react app, for a personal coding website. I'm trying to create basic functionality, namely 'pwd', 'ls', 'cat' and 'cd'. I have a react component that does ...
1
vote
1
answer
458
views
React Speech Recognition not working when on IP
I have trouble figuring out how to permit browser to use my microphone. I use the
npm-speech-recognition
library.
The code i have is as follows:
import React, { useEffect } from "react";
...
0
votes
0
answers
116
views
Error: GET http://localhost:5000/api/notes/fetchallnotes 401 (Unauthorized) and TypeError: notes.map is not a function
*I am working on a React application where I am fetching notes from an API. However, I am encountering two errors:
GET http://localhost:5000/api/notes/fetchallnotes 401 (Unauthorized): This error ...
0
votes
1
answer
297
views
How can I handle database Models referencing to each other or being shared by different microservices?
I have a monolithic full stack app, that i am trying to refactor to a microservice architecture. In the monolithic architecture, I have the following models:
import mongoose from "mongoose"
...
1
vote
4
answers
26k
views
My Error: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
I am using mongoose to connect the MongoDB with my backend.
const connectDB = async () => { try { const conn = await mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, ...
1
vote
1
answer
163
views
Creating a table to display rows from a database
I'm trying to create a table that will display the rows of a database called patients and I have created this using Django as the back-end and react as the Front-End. When I try to implement the code ...
1
vote
0
answers
55
views
Next-Auth signIn with google Issue
I'm new to the next.js 13 and I've been learning since a month and when I'm trying to integrate the sign in with google with next-auth in my next.js project I was getting errors.
I've tried using app/...
-1
votes
1
answer
293
views
Sending HTML hyperlinks to EmailJS API (and other possible alternatives)
My goal is to send an html fragment wrapped in a string in my react app, to emailjs, an email api that holds your template.
my code
const getMessage = () => {
let base = "localhost:3000/...
0
votes
1
answer
257
views
Having problem with Array.map() in React when I try to print all array items in unordered list
Here is the code :
let count = 0;
function GenerateValue(tasks) {
count += 1;
let someValue = Math.random() * 10;
tasks.push({key : count, value : someValue});
console.log(tasks);
}
...
0
votes
0
answers
129
views
Getting CORS error after adding Dockerfile to my Django project
So to keep it brief, I have a fullstack application which is deployed on Railway. Everything worked perfectly. Then I decided to integrate celery so I can run some tasks in background.
Now in order to ...
1
vote
0
answers
63
views
Getting warnings for OverlayTrigger in Reactjs
Warning for Overlay Trigger
I have used OverlayTrigger component of react-bootstrap, it gives warning as shown in the image above.
Code:
<OverlayTrigger delay={{ show: 250, hide: 400 }} overlay={&...
-2
votes
1
answer
762
views
Is the Idea of Backend non-existent in NextJS and Prisma Project? [closed]
I am new to the full-stack and specifically NextJs. I had a small chance to develop a simple blog post web app using MERN stack. while developing the app, I separated the frontend and backend folders ...
0
votes
2
answers
110
views
Having a uncaught error axioserror whenever try to open admin dashboard
ERROR
Request failed with status code 404
AxiosError: Request failed with status code 404
at settle (http://localhost:3000/static/js/bundle.js:167104:12)
at XMLHttpRequest.onloadend (http://localhost:...
0
votes
1
answer
464
views
Webpack in JavaScript shows: Error: Unknown option '--watch-content-base'
{
"name": "frontend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
&...
1
vote
0
answers
48
views
I was trying to add the functionality that when i click on the selected radio button again it should get deselected
I was trying to add the functionality, that when I click on the selected radio button again, it should get deselected, but my logic is not working, that what I have did in handleRadioChange function.
...
0
votes
1
answer
50
views
How to fix error "searchParams.userId" And I can’t upload the project to either Netfly or Vercel
How to fix error "searchParams.userId"
And I can’t upload the project to either Netfly or Vercel
https://www.youtube.com/watch?v=c_-b_isI4vg&t=536s&ab_channel=CodeWithAntonio
I did ...
0
votes
0
answers
38
views
custom form validation based on type selection using html JavaScript
I have a one form divided in to two parts. I want validation after page load.
First show only three field and I want the two field validated so if user clicks without entering data in the two fields,...
0
votes
1
answer
127
views
Handlebars won't render HTML
I'm new to using handlebars and struggling to figure out why the html I want won't render at all. Handlebars seems to only throw me blank pages.
I suspect it has something to do with the {{{body}}} ...
0
votes
2
answers
1k
views
Flask 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin'
I am trying to configure the flask backend to react front end. Both of these are running in different ports so I am importing CORS to allow config the backend to work with an application that's ...
0
votes
1
answer
492
views
How to reinitiate a frame by frame animation built on the React Hooks useRef, useState, and UseEffect stopped by a conditional state update?
This is a beginner project I'm working on which utilizes react to animate pixel art. It functions by using a brute force method of iterating through a array to set the images of the cat. A timer is ...
0
votes
1
answer
250
views
Why am I unable to import any of the images which are present in the public folder?
I'm currently working on NextJS, and I can't able to import the any of the images which are present in the public folder. I can go through folders but it is not fetching the images.
I used the ...
0
votes
0
answers
30
views
Unable to upload images from React to Express, but I can send texts
So I have some React (TS) code and I am trying to upload an image from the frontend to the backend, as well as send texts. I am able to send texts (ie, I get Text sent successfully logged to the ...
1
vote
3
answers
7k
views
I deployed my backend on render and it's working fine but after some times my uploded imges deleted but not static images which is present in code
I have deployed a nodejs server on render as free services. I have an API in my project to upload an image. After upload it appears on my application or on my interface for sometime.
After 5 to 10 ...
1
vote
1
answer
297
views
How does Loader work with two parameters?
I'm trying to learn how to use Loaders in React-router-dom and can't get two parameters working.
export const loadConvoMsg = ({conversationId, courseId}) => async () => {
console.log('...
1
vote
1
answer
53
views
if select option select fixed then input field type rupees support 20 digit with rupees symbol if select percentage then replace rupees symbol
if select option select fixed value then input field type rupees value support only 20 digit with rupees symbol. if select percentage then replace rupees symbol with percentage of symbol and value ...
1
vote
1
answer
240
views
Next.js 13 GitHub OAuth not working correctly, somehow signs me into Discord?
I'm having a very peculiar issue with my app...
I have OAuth 2 implemented with GitHub, Discord, and Google. Google and Discord work, but when I attempt with GitHub, it signs me into my Discord. This ...
0
votes
0
answers
182
views
How do I connect Nodemon with Mongoose?
I am learning MongoDb and was following a playlist and did everything accordingly. I am trying to connect database with Mongoose. But when I try to run nodemon I get the following error.
Please be ...
0
votes
1
answer
204
views
Error 403 when attempting to register a user - Need assistance resolving the issue
I am currently developing a web application that includes user registration functionality. However, when I try to register a new user, I encounter an "Error 403" response in the console. ...
1
vote
0
answers
45
views
When I press the button, I can't get the new information immediately. The process takes place according to the old information
I'm very new to react. There is a place where I'm stuck.
I have action buttons. When I press one, firstly it is checked whether it has been liked before, and then I use useMutate to remove the like if ...
0
votes
1
answer
578
views
How to link a file to an entry(collection type) in Strapi V4?
I am using Strapi V4 to save all the data of my form. In my strapi architecture there is a file/image field and others are text field. I want to link this image and other entries. currently when I ...
0
votes
2
answers
41
views
How can i add new property (photo) to user in node.js?
userModel.js
userRoute.jsa
licenseMiddelware.js
i want to add new property (photo) to the users in database mondoDB
but when i run my code its add new section in users (mongoDB) contains only the ...
2
votes
2
answers
58
views
Problem with showing whether I joined or not in a chat app
I have a bit of experience with react and express. I am trying to build a chat app using socket io. I am first time using it. But I think I got it a little bit after reading some documentation and ...
1
vote
0
answers
536
views
Javascript fetch API using HTTPS when clearly using HTTP on a WeatherStack endpoint
Here is the code im using in a top level Weather Component. I'm fetching on the client side using create-react-app on localhost:3000.
const fetchWeatherData = async () => {
try {
...
0
votes
3
answers
165
views
how to Map an array to an array with multiple objects within a Component
<MultiSelect
id="MultiSelect-1"
label="Label"
onChange={function noRefCheck(){}}
options={[
{
label: 'Checkbox 1',
name: 'accounts',
value: '...
0
votes
1
answer
137
views
problems on request POST mutation on GraphQL and REACT
i receive 400 bad request when i try to add a task on my website! need help =(
i see people also returning all the page return() in every function, should i do the same? or i can leave the return at ...
0
votes
0
answers
112
views
Can't do a basic request on Postman
I am following a full-stack react course, and I am using Postman for the first time. I have tried several times to do a GET request, but I keep getting the same error:
Error: getaddrinfo ENOTFOUND ...
0
votes
0
answers
19
views
I am facing an issue in my fullstack program. When i am giving a command of npm start in terminal its not working
If anyone know how to do it help me. in this program i used graphql and apollo-server-express
Expexting the solution to run graphql and apollo-server-express and error of npm start.I am facing problem ...
0
votes
1
answer
201
views
Cannot display from layout.js to index.js use children
I have Layout.js, this is the Code
import Layout from '../components/Layout';
export default function Home(){
<Layout>
test
</Layout>
}
So i want to use ...
0
votes
1
answer
21
views
Why is my full stack app inputting 0s into the MySQL database instead of form values?
This is my front end, where I use Formik to create a form and get input from the user.
import React from 'react'
import {Formik, Form, Field, ErrorMessage} from "formik"
import axios from &...
0
votes
0
answers
2k
views
Uncaught (in promise) SyntaxError: Unexpected end of input?
Uncaught (in promise) SyntaxError: Unexpected end of input
const responseBody = await response.json();
here i am taking json response from a api and then object to display card on my website but this ...
-2
votes
1
answer
676
views
Next.js Express.js and MySql app deployment
Since this is the first private project that I have done in Next.js I am wondering how do I host it with backend and database.
All tutorials are about next.js alone, I am not sure what should I use in ...
0
votes
1
answer
529
views
Not able to save cookie in browser using react but the backend code work with postman and save cookie inside postman's cookie as well as in browser
I got the token inside the cookies when hit the code from postman but didn't get when hit the same api with react. this is my code
for backend
enter image description here
export const signin = ...