let queryitem_id=userSelladdtocartData.
item_id;
let sqlSelect = `SELECT * from products where item_id=${queryitem_id}
-------------------
the files relating to hp diagnostic utility may have been deleted.
the files relating to node js may have been deleted.
------------
------------
> node app.js
Loaded config for environment: localhost
Database connection pool created with config: { host: '0.0.0.0', user: 'root',
database: 'testdbrgaxptomedu' }
✅ Swagger spec generated for Local Development environment: swagger.json
Server running on port 3002 with environment: localhost
Loaded configuration: {
PORT: '3002',
DB_HOST: '0.0.0.0',
DB_USER: 'root',
DB_PASS: 'Spsnmpeter@123',
DB_NAME: 'testdbrgaxptomedu',
RABBITMQ_URL: 'amqp://localhost',
ACCESS_TOKEN_SECRET: 'Trade57JWTSecret',
REFRESH_TOKEN_SECRET: 'Trade57JWTSecret',
ACCESS_TOKEN_EXPIRES_IN: '15m',
REFRESH_TOKEN_EXPIRES_IN: '7d',
REDIS_URL: 'redis://:AppTrade57%
[email protected]:6379',
NOTIFICATIONS_BASE_URL: 'http://localhost:3002',
'CONTENT_TYPE ': "'application/json',",
'X_CLIENT_ID ': "'1dbfebd6-5fbf-421b-827a-475bb857204f',",
'X_CLIENT_SECRET ': "'mhZjct4WGu1f1sqzmWpXOqrEYWZqCo7l',",
'SETU_BASE_URL ': "'https://dg-sandbox.setu.co/',",
X_PRODUCT_INSTANCE_ID_PAN: "'af916fdf-33ff-44ec-a107-c7f7340e4f24'",
X_PRODUCT_INSTANCE_ID_GST: "'d0b27222-a1aa-45ee-b227-7b4a615436d7'",
DIGILOCKER_SETU_REDIRECT_URL: "'https://setu.co'",
X_PRODUCT_INSTANCE_ID_DIGILOCKER: "'53126b24-d675-41bd-8ce5-c1ac05619b34'",
'; AZURE_STORAGE_CONNECTION_STRING':
"'DefaultEndpointsProtocol=https;AccountName=t57storage;AccountKey=FzdHgAq/
Af9xnDrdMVn/
K43oFq4sX2z5whppITr6O6YRLOphfcaLUmwwk7GOobD3KyCu2cLgQFCp+AStVfJbSw==;EndpointSuffix
=core.windows.net'",
'; AZURE_STORAGE_CONTAINER_NAME': "'kycdocuments'",
'; AZURE_STORAGE_BASE_URL':
"'https://t57storage.blob.core.windows.net/kycdocuments'",
AZURE_ACCOUNT_NAME: 't57storage',
AZURE_ACCOUNT_KEY:
'FzdHgAq/Af9xnDrdMVn/K43oFq4sX2z5whppITr6O6YRLOphfcaLUmwwk7GOobD3KyCu2cLgQFCp+AStVf
JbSw==',
AZURE_CONTAINER_NAME: 'kycdocuments'
}
Connected to Redis
Signup error: AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1139:18)
at afterConnectMultiple (node:net:1714:7) {
code: 'ECONNREFUSED',
[errors]: [
Error: connect ECONNREFUSED ::1:5672
at createConnectionError (node:net:1677:14)
at afterConnectMultiple (node:net:1707:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5672
},
Error: connect ECONNREFUSED 127.0.0.1:5672
at createConnectionError (node:net:1677:14)
at afterConnectMultiple (node:net:1707:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5672
}
]
}
Signup error: AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1139:18)
at afterConnectMultiple (node:net:1714:7) {
code: 'ECONNREFUSED',
[errors]: [
Error: connect ECONNREFUSED ::1:5672
at createConnectionError (node:net:1677:14)
at afterConnectMultiple (node:net:1707:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5672
},
Error: connect ECONNREFUSED 127.0.0.1:5672
at createConnectionError (node:net:1677:14)
at afterConnectMultiple (node:net:1707:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5672
}
]
}
--------------------------------
{
"countryId": 2,
"salutation": "Hi2 Mr.",
"firstName": "SaIFAhmed",
"lastName": "Ahmedmuneer21",
"password": "Spsnmpeter@123",
"phoneCountryId": 91,
"phoneNumber": "9902036338",
"emailAddress": "[email protected]",
"roles": [
0
]
}
-------------
{
"countryId": 2,
"salutation": "Hi2 Mr.",
"firstName": "SaIFAhmed",
"lastName": "Ahmedmuneer21",
"password": "Spsnmpeter@123",
"phoneCountryId": 91,
"phoneNumber": "9902036338",
"emailAddress": "[email protected]",
"roles": [
0
]
}
----------------
Responses
Curl
curl -X 'POST' \
'http://localhost:3002/api/users/signup' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"countryId": 2,
"salutation": "Hi3 Mr.",
"firstName": "SaIFAHMED2",
"lastName": "Ahmedmuneer221",
"password": "Spsnmpeter@123",
"phoneCountryId": 91,
"phoneNumber": "9008778421",
"emailAddress": "[email protected]",
"roles": [
1
]
}'
Request URL
http://localhost:3002/api/users/signup
Server response
Code Details
Undocumented
Failed to fetch.
Possible Reasons:
CORS
Network Failure
URL scheme must be "http" or "https" for CORS request.
Responses
Code Description Links
201
User registered successfully
No links
400
Missing required fields or invalid roles
No links
409
User already exists
No links
500
Internal Server Error