Questions tagged [req]
53 questions
1
vote
0 answers
NODE GridFStorage with additional data from request doesn't always show up
Hey guys i'm confronting a very strange behaviour with GridFs while i try to upload a file:
So i send with formdata my file which i want to upload and a code which will be set in metadata in files,
the files are saved correctly and the originalname…

iLoveMental
- 55
- 7
1
vote
4 answers
pyzmq REQ/REP with asyncio await for variable
I'm playing for the first time with asyncio in python and trying to combine it with ZMQ.
Basically my issue is that I have a REP/REQ system, in an async def with a function I need to await. how the value is not updated.
Here's a snippet of the…

will.mendil
- 752
- 2
- 6
- 21
0
votes
1 answer
NodeJS http request event listener firing more than once
I'm new to backend development so have just made my first server using NodeJS and the http module. This is my code so far:
const http = require("http");
let count = 0;
const server = http.createServer((req, res) => {
res.write(count.toString());
…

hasin
- 79
- 6
0
votes
0 answers
How to get the name of the file from request object in node js using code while sending the request through postman?
I am trying to find the name of the file when sending a post request to a sample api server that is running locally.
The req.body object is huge and I am trying to send the file using form-data option from the body and selected a jpg image in the…

VamseeKrishna
- 23
- 5
0
votes
0 answers
Problem with a request to server in JavaScript
I wrote simple JavaScript that should make a request to my server. I opened one more chrome window with turned off security. So I don't have an error connected with CORS.
Here is this JS code:
const registerBtn =…
user20300075
0
votes
0 answers
getting req.params is showing undefined
I need product id that's _id from my mongo document but when I consoled req.params.id it is showing undefined to my /shop page and I'm following mvc format
// get request://
router.get("/shop/:id",userController.shopPage)
//route://
…

Albert Remalin Raja
- 35
- 6
0
votes
0 answers
Why is req.cookies undefined? whats wrong
SITUATION:
I am trying to check if my user is authenticated when he makes a request to the server.
but when I calling req.cookies it allways show undefined. I don't what happening.
I'm Using MERN Stack with redux
CODE:-
server side -
app.js…

Nilesh Kurrey
- 1
- 1
0
votes
0 answers
Upload a file using React and Express
i want to upload a zip file from a client to my server. On my client side i have adapt the code from this site. In my express server i notice that my request is
req.files: { file:
{ fieldName: 'file',
originalFilename: 'myZIP.zip',
path:…

The_elevator
- 75
- 1
- 8
0
votes
1 answer
Decode JSON object in req where content type 'application/x-www-form-urlencoded'
I have integration with payment service, and he send me a curl like this
curl -d…

Sergii Rubicon
- 1
- 1
0
votes
0 answers
Req.body is empty object when using FormData
I used multer to save the file which uploaded by user
in my middlewares the req.body is empty object
I used
express.json()
in my app.js
and i am using formdata method with Postman
everything went good when i used normal json but thats wont help me…

Mohammad ARZ
- 99
- 6
0
votes
2 answers
req.body seems to be undefined
I'm trying to ulpoad an image with multer and postman and the upload is working.
I just got one (big) problem : the name of the photo is always undefined.jpg when I want it to be req.body.name + "jpg". Is there a problem with the req.body ?
Here is…
0
votes
0 answers
Can't open "certs\ca.key" for writing, No such file or directory (openssl)
i have problem when Generate SSL/TLS Certificates.
i enterd this commands in windows command but i have error
openssl req -days 3650 -nodes -new -x509 -extensions v3_ca -keyout certs\ca.key -out certs\ca.crt -config…

milad javaheri
- 1
- 2
0
votes
0 answers
Haskell req package: how to use withReqManager to reuse connection for many requests to the same host?
I would like to reuse a HTTPS connection for many requests to keep latency as low as possible for every request to the same host. Using the haskell package req, if I send too many requests in a short period of time then it seems I might be reaching…

Anon
- 375
- 1
- 7
0
votes
1 answer
express req.body is returing an empty json object
I have read all the other posts and I have verified none of the solutions on any of them solve my problem. In insomnia I am setting the content type header to "application/json" and I am applying the express.json() middle ware before any of my…

Dabbo Pabblo
- 21
- 4
0
votes
1 answer
How can I create a CSR like this using OpenSSL?
I got a CSR example from some customer. They are asking how to use openssl command to create such CSR. I can create an CSR but I can't create a similar CSR that containing same attributes part.
Certificate Request:
Data:
Version: 2…

Xutao
- 1