Skip to main content

All Questions

Tagged with
-1 votes
0 answers
18 views

Calling external API using Axios in AWS Lambda

response = await axios .request({ url: url, baseURL: baseUrl, method: method, headers: headers, data: data, params: ...
arranblue's user avatar
  • 195
-4 votes
0 answers
41 views

ExpressJS API integration [closed]

I've been trying to build an API integrated section for my website since it needs a news section. I have a small amount currently built but am struggling with getting it to work. This is through using ...
DPDDExamUser-16's user avatar
-3 votes
0 answers
61 views

Express route /api/test returns 404 Not Found even though it’s defined

I have a simple Express server listening on port 5002. In my server.js I’ve defined a test endpoint: // server.js import express from 'express'; import cors from 'cors'; const app = express(); app....
Narges's user avatar
  • 1
0 votes
0 answers
55 views

How to download a document from Express-Node.js backend through a HTML hyperlink (<a>) on the frontend?

I know I can download static files from frontend with <a href="/path/fileName" download>MyDocument</a> , but I need to download dynamic files that can be uploaded and deleted by ...
user28751094's user avatar
-1 votes
0 answers
25 views

CORS error - cross-origin resource sharing error wildcard origin not allowed in different browsers when i use my local server [duplicate]

I am writing and testing a full-stack application. My frontend is uploaded to hosting and has the address for example - planner. And my server is on a local computer with a database. For the test, I ...
SolarMan's user avatar
0 votes
2 answers
140 views

JWT Token/Cookies Not Sent from Frontend (Vercel) to Backend (Render) – Getting 401 Unauthorized

I'm a self-learning web developer, and I recently deployed my backend on Render (free tier) and my frontend on Vercel. The stack includes Node.js, Express, MongoDB, WebSockets, and authentication is ...
Sarib Jawad's user avatar
0 votes
0 answers
41 views

How to modify Kubernetes ingress for sending cookie?

I have a web application running on kubernetes cluster. There are some cookies on the frontend part and I want to add this cookies in the request header. I'm using axios for sending request. I added ...
Jantoma21's user avatar
  • 495
0 votes
0 answers
19 views

Session changing upon accessing different route using express-session and socket.io-client

I'm continuing to struggle with how to create a fake client that mimics a browser accessing routes on a Node.js server. Things work perfectly with an actual browser, but (for testing purposes) I would ...
P. Lewis's user avatar
0 votes
1 answer
29 views

Axios + cookieParser still returns cookie undefined

I am building a React + Node.js project. I have a FE calling the BE endpoint with axios. In the request I have the following: await axios.post('http://localhost:8080/submit-survey', formDataToSend, { ...
Stiliyan Koev's user avatar
0 votes
1 answer
29 views

Nifi API gives 400 invalid request from NodeJs Axios (works fine through curl or postman)

I have Apache nifi running locally. I am able to access api url as below (generated from postman). curl --location --insecure ^ "https://localhost:8443/nifi-api/access/token" ^ --header &...
Anonymous Creator's user avatar
0 votes
0 answers
204 views

Meta WhatsApp Cloud API: "(#100) Invalid parameter" error while sending template message in Node.js

I'm trying to integrate the Meta WhatsApp Cloud API in my Node.js + Express project to send a registration confirmation message after a user signs up. However, I am encountering an error: (#100) ...
Sujay K C's user avatar
1 vote
1 answer
59 views

How to set DNS server for a single axios get request?

I know I can set the DNS servers in node dns.setServers([ '4.4.4.4', '[2001:4860:4860::8888]', ]); But this is set globally and I'm developing a module (dependency) and I don't want to affect ...
João Pimentel Ferreira's user avatar
0 votes
0 answers
68 views

Validation of sending sms through sms gateway - Yeastar

I'm trying to read the message about the correct or incorrect sending of an sms message by the Yeastar TG200 gateway. In the browser I get this message in html form: <html><head><meta ...
SamWieszKto's user avatar
1 vote
1 answer
36 views

"AxiosError: Request failed with status code 400" on Market Order Request

I'm working on a trading bot that connects to Binance Testnet using WebSockets to get ticker updates and Axios to place market orders. However, I'm encountering the following error when trying to ...
reimannsur's user avatar
0 votes
0 answers
15 views

How to Retrieve Redemption Codes from eBay API Using Node.js

I'm trying to retrieve redemption codes (e.g., coupon codes or discounts) from the eBay API using Node.js with axios. So far, I successfully obtain an OAuth access token using the Client Credentials ...
Maltazar's user avatar

15 30 50 per page
1
2 3 4 5
309