I’ve been working on creating an API for a blockchain I’ve made. Everything was going fine, until I updated Node and Windows… ====== ISSUE ====== After performing a POST request, I cannot redirect to a GET page anymore. (Using Postman only no front end yet). For some reason, it was working fine and now I can’t do it in a
Tag: server
I am getting a 404 error when attempting to load a background-image from CSS. Unsure how to proceed
I have searched through several posts regarding this same issue but none seem to resolve my problem. I am getting this 404 error in my console: index.css:1 GET http://localhost:5500/assets/css/assets/css/Battleship-Wallpaper.jpeg 404 (Not Found) I have the image saved in .jpeg format inside of my CSS folder. I am attempting to link the relative path and set the background image like so:
Efficient way to merge two array of objects in javascript based on similarities?
So I have two array of objects: and the expected result is: This is just two examples out of thousands of data, I have tried mapping through two arrays and inserting them manually however this would always result in a timeout since I think looping is quite heavy on the backend server. Is there an efficient way to do such
Stripe integration in an Expo managed project
I’m very new to programming, I know I’m not supposed to ask here, but I really got lost, I’m building a food ordering app with Expo and the only thing left for me is to add Stripe and building the iOS and android projects. I’m really confused on what are the next steps, some people talk about ejecting and then
How to save excel workbook using Javascript
I have created an HTML form that takes in user data and using exceljs and a few other libraries I store this data into an excel spreadsheet. This part of my code works perfectly fine. However, when I refresh the server, the data stored in the excel file previously gets deleted. I believe the reason is that I could not
AWS EC2 instance connection refused on port 8085
I have a new EC2 instance in AWS where I’m hosting a webpage too. i associated the instance to a security group, and some rules work (like connect to mysql or vesta). I have created a simple server with nodeJS and I want to listen a request from port 8085 (I could choose any….). I have create a inbound rule
Error: ENOENT: no such file or directory, open When trying to access a directory with fs
I am not knowledgeable in nodejs or express, I have an API running on http://localhost:3000 and one of the endpoints call a function that uses file system to read file synchronously. When I make a post request on postman, it says in the console that it can’t read a path that doesn’t exist (which does to my understanding). Relevant code:
¿Why can’t I concatenate two arrays in this query handler?
I am trying to merge arrays from a request to already existing arrays in a MongoDB database. When I printed the output of the request, the arrays did not merge. What seems to be the issue here? Answer concat() method Your result is the expected behavior of concat method. From MDN documentation: The concat() method is used to merge two
Sending info and variables between Client-Side and Server-Side
so I have an express.js server, I don’t quite understand how I can send and receive I have (for example) an input for someone to write his email , I want the email to be sent to the server, validated, and then an email function sends an email to that user, However, my issue is that I don’t know how
How do I send message from HTML to Python (Flask) using JavaScript?
I need to send string from HTML file to Python(Flask) using JavaScript. This is my HTML code inside “templates” folder: This is my JavaScript code (index.js) inside “static” folder This is the code for my main.py It is supposed to work, but the button doesn’t work, “clicked” isn’t being printed when the button is being pressed. Answer @geatanoM change $(‘a#test’)